home *** CD-ROM | disk | FTP | other *** search
/ Ultra Gameplayers 101 / Ultra Game Players Magazine, No. 101 - September 1997 (Imagine Publishing, Inc.)(1997).iso / mac / XTRAS / MasterApp XObject / MasterApp XObject.rsrc
MacOS Resource Fork  |  1997-03-02  |  59.8 KB  |  [XOBJ/MD93]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacOS Resource Fork (archive/rsrc).

You can browse this item here: MasterApp XObject.rsrc

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Resource Fork (archive/rsrc) magic Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert BeOS Resource Data (archive/beOSResourceData) ext Unsupported
1% dexvert AppleSingle (archive/appleSingle) fallback Supported
100% file AppleDouble encoded Macintosh file default
99% file data default
56% TrID Mac AppleDouble encoded default
28% TrID TTComp archive compressed (bin-2K) default (weak)
14% TrID MacBinary 1 default (weak)
100% siegfried fmt/503 AppleDouble Resource Fork (2) default
100% lsar AppleSingle default


id metadata
keyvalue
macFileType[XOBJ]
macFileCreator[MD93]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 00 |.2... ..|.....R..|
|00000030| ee f5 58 4f 42 4a 4d 44 | 39 33 01 00 00 00 00 00 |..XOBJMD|93......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 00 | ee 99 00 00 ed 99 00 00 |........|........|
|00000060| 00 5c 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.\......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 00 00 11 4d 61 73 74 65 | 72 41 70 70 20 58 4f 62 |...Maste|rApp XOb|
|00000090| 6a 65 63 74 02 00 00 00 | 58 4f 42 4a 4d 44 39 33 |ject....|XOBJMD93|
|000000a0| 01 00 00 00 58 4f 42 4a | 4d 44 39 33 01 00 ff ff |....XOBJ|MD93....|
|000000b0| ff ff 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 af 3e ac 60 | 00 00 00 00 00 00 ee f5 |.....>.`|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 42 00 50 | 60 00 00 00 04 30 2e 35 |.....B.P|`....0.5|
|00000160| 30 36 30 2e 35 30 2c 20 | a9 20 31 39 39 36 2d 31 |060.50, |. 1996-1|
|00000170| 39 39 37 20 47 6c 65 6e | 6e 20 4d 2e 20 50 69 63 |997 Glen|n M. Pic|
|00000180| 68 65 72 20 28 72 65 67 | 69 73 74 65 72 65 64 20 |her (reg|istered |
|00000190| 76 65 72 73 69 6f 6e 29 | 00 00 00 23 00 50 60 00 |version)|...#.P`.|
|000001a0| 00 00 04 30 2e 35 30 17 | 44 69 72 69 67 6f 20 4d |...0.50.|Dirigo M|
|000001b0| 75 6c 74 69 6d 65 64 69 | 61 20 74 6f 6f 6c 73 00 |ultimedi|a tools.|
|000001c0| 00 ed 28 60 00 6c 46 00 | 00 00 00 00 00 00 00 2a |..(`.lF.|.......*|
|000001d0| 2d 2d 20 4d 61 73 74 65 | 72 41 70 70 20 58 4f 62 |-- Maste|rApp XOb|
|000001e0| 6a 65 63 74 2c 20 76 65 | 72 73 69 6f 6e 20 30 2e |ject, ve|rsion 0.|
|000001f0| 35 30 2c 20 33 2f 31 2f | 39 37 3c 2d 2d 20 43 6f |50, 3/1/|97<-- Co|
|00000200| 70 79 72 69 67 68 74 20 | a9 20 31 39 39 36 2d 31 |pyright |. 1996-1|
|00000210| 39 39 37 2c 20 47 6c 65 | 6e 6e 20 4d 2e 20 50 69 |997, Gle|nn M. Pi|
|00000220| 63 68 65 72 2c 20 44 69 | 72 69 67 6f 20 4d 75 6c |cher, Di|rigo Mul|
|00000230| 74 69 6d 65 64 69 61 47 | 2d 2d 20 68 74 74 70 3a |timediaG|-- http:|
|00000240| 2f 2f 77 77 77 2e 6d 61 | 69 6e 65 2e 63 6f 6d 2f |//www.ma|ine.com/|
|00000250| 73 68 6f 70 73 2f 67 70 | 69 63 68 65 72 2c 20 67 |shops/gp|icher, g|
|00000260| 70 69 63 68 65 72 40 6d | 61 69 6e 65 2e 63 6f 6d |picher@m|aine.com|
|00000270| 2c 20 28 32 30 37 29 37 | 36 37 2d 38 30 31 35 03 |, (207)7|67-8015.|
|00000280| 2d 2d 20 51 2d 2d 20 52 | 65 6c 65 61 73 61 62 6c |-- Q-- R|eleasabl|
|00000290| 65 20 62 65 74 61 20 76 | 65 72 73 69 6f 6e 2e 20 |e beta v|ersion. |
|000002a0| 43 6f 6e 74 61 63 74 20 | 67 2f 6d 61 74 74 65 72 |Contact |g/matter|
|000002b0| 2c 20 69 6e 63 2e 20 66 | 6f 72 20 6c 69 63 65 6e |, inc. f|or licen|
|000002c0| 73 69 6e 67 20 6f 72 20 | 74 65 63 68 20 73 75 70 |sing or |tech sup|
|000002d0| 70 6f 72 74 3a 43 2d 2d | 20 68 74 74 70 3a 2f 2f |port:C--| http://|
|000002e0| 77 77 77 2e 67 6d 61 74 | 74 65 72 2e 63 6f 6d 2c |www.gmat|ter.com,|
|000002f0| 20 73 61 6c 65 73 40 67 | 6d 61 74 74 65 72 2e 63 | sales@g|matter.c|
|00000300| 6f 6d 2c 20 73 75 70 70 | 6f 72 74 40 67 6d 61 74 |om, supp|ort@gmat|
|00000310| 74 65 72 2e 63 6f 6d 20 | 2e 02 2d 2d 06 49 20 6d |ter.com |..--.I m|
|00000320| 4e 65 77 1b 2d 2d 20 53 | 74 61 6e 64 61 72 64 20 |New.-- S|tandard |
|00000330| 63 72 65 61 74 69 6f 6e | 20 6d 65 74 68 6f 64 02 |creation| method.|
|00000340| 2d 2d 0a 58 20 6d 44 69 | 73 70 6f 73 65 1a 2d 2d |--.X mDi|spose.--|
|00000350| 20 53 74 61 6e 64 61 72 | 64 20 64 69 73 70 6f 73 | Standar|d dispos|
|00000360| 65 20 6d 65 74 68 6f 64 | 02 2d 2d 40 2d 2d 20 4e |e method|.--@-- N|
|00000370| 6f 74 65 3a 20 43 68 65 | 63 6b 20 61 6c 6c 20 73 |ote: Che|ck all s|
|00000380| 74 72 69 6e 67 2d 72 65 | 74 75 72 6e 69 6e 67 20 |tring-re|turning |
|00000390| 6d 65 74 68 6f 64 73 20 | 66 6f 72 20 77 6f 72 64 |methods |for word|
|000003a0| 20 31 20 27 45 72 72 6f | 72 3a 27 2c 2c 2d 2d 20 | 1 'Erro|r:',,-- |
|000003b0| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 61 20 64 65 |followed| by a de|
|000003c0| 73 63 72 69 70 74 69 6f | 6e 20 6f 66 20 74 68 65 |scriptio|n of the|
|000003d0| 20 70 72 6f 62 6c 65 6d | 2e 02 2d 2d 11 2d 2d 20 | problem|..--.-- |
|000003e0| 54 41 53 4b 20 46 55 4e | 43 54 49 4f 4e 53 11 2d |TASK FUN|CTIONS.-|
|000003f0| 2d 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |- ------|--------|
|00000400| 4d 2d 2d 20 4e 6f 74 65 | 3a 20 6f 6e 20 74 68 65 |M-- Note|: on the|
|00000410| 20 4d 61 63 2c 20 64 75 | 65 20 74 6f 20 61 72 63 | Mac, du|e to arc|
|00000420| 68 69 74 65 63 74 75 72 | 61 6c 20 64 69 66 66 65 |hitectur|al diffe|
|00000430| 72 65 6e 63 65 73 2c 20 | 74 61 73 6b 49 44 73 2c |rences, |taskIDs,|
|00000440| 20 6d 6f 64 75 6c 65 49 | 44 73 20 61 6e 64 55 2d | moduleI|Ds andU-|
|00000450| 2d 20 69 6e 73 74 61 6e | 63 65 49 44 73 20 61 72 |- instan|ceIDs ar|
|00000460| 65 20 69 6e 74 65 72 63 | 68 61 6e 67 65 61 62 6c |e interc|hangeabl|
|00000470| 65 2e 20 54 68 65 79 20 | 61 72 65 20 64 69 73 74 |e. They |are dist|
|00000480| 69 6e 63 74 6c 79 20 64 | 69 66 66 65 72 65 6e 74 |inctly d|ifferent|
|00000490| 20 6e 75 6d 62 65 72 73 | 20 6f 6e 20 57 69 6e 64 | numbers| on Wind|
|000004a0| 6f 77 73 2e 02 2d 2d 0e | 53 20 6d 47 65 74 54 61 |ows..--.|S mGetTa|
|000004b0| 73 6b 4c 69 73 74 46 2d | 2d 20 52 65 74 75 72 6e |skListF-|- Return|
|000004c0| 73 20 61 20 73 74 72 69 | 6e 67 20 6f 66 20 61 6c |s a stri|ng of al|
|000004d0| 6c 20 63 75 72 72 65 6e | 74 6c 79 20 72 75 6e 6e |l curren|tly runn|
|000004e0| 69 6e 67 20 74 61 73 6b | 73 2c 20 77 69 74 68 20 |ing task|s, with |
|000004f0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 2a 2d 2d |the foll|owing*--|
|00000500| 20 69 6e 66 6f 20 6f 6e | 20 65 61 63 68 20 6c 69 | info on| each li|
|00000510| 6e 65 2c 20 73 65 70 61 | 72 61 74 65 64 20 62 79 |ne, sepa|rated by|
|00000520| 20 63 6f 6d 6d 61 73 3a | 39 2d 2d 20 20 20 74 61 | commas:|9-- ta|
|00000530| 73 6b 4e 61 6d 65 2c 20 | 74 61 73 6b 49 44 2c 20 |skName, |taskID, |
|00000540| 70 61 72 65 6e 74 54 61 | 73 6b 49 44 2c 20 69 6e |parentTa|skID, in|
|00000550| 73 74 61 6e 63 65 49 44 | 2c 20 6d 6f 64 75 6c 65 |stanceID|, module|
|00000560| 49 44 3d 2d 2d 20 4f 6e | 20 74 68 65 20 4d 61 63 |ID=-- On| the Mac|
|00000570| 2c 20 74 61 73 6b 49 44 | 2c 20 69 6e 73 74 61 6e |, taskID|, instan|
|00000580| 63 65 49 44 20 61 6e 64 | 20 6d 6f 64 75 6c 65 49 |ceID and| moduleI|
|00000590| 44 20 61 72 65 20 69 64 | 65 6e 74 69 63 61 6c 2e |D are id|entical.|
|000005a0| 45 2d 2d 20 4f 6e 20 74 | 68 65 20 4d 61 63 2c 20 |E-- On t|he Mac, |
|000005b0| 74 61 73 6b 49 44 73 20 | 61 72 65 20 75 6e 69 71 |taskIDs |are uniq|
|000005c0| 75 65 20 74 6f 20 65 61 | 63 68 20 4d 61 73 74 65 |ue to ea|ch Maste|
|000005d0| 72 41 70 70 20 58 4f 62 | 6a 65 63 74 20 69 6e 73 |rApp XOb|ject ins|
|000005e0| 74 61 6e 63 65 2c 4b 2d | 2d 20 62 65 63 61 75 73 |tance,K-|- becaus|
|000005f0| 65 20 74 61 73 6b 49 44 | 73 20 61 72 65 20 6d 61 |e taskID|s are ma|
|00000600| 69 6e 74 61 69 6e 65 64 | 20 62 79 20 4d 61 73 74 |intained| by Mast|
|00000610| 65 72 41 70 70 2c 20 6e | 6f 74 20 62 79 20 74 68 |erApp, n|ot by th|
|00000620| 65 20 73 79 73 74 65 6d | 20 73 6f 66 74 77 61 72 |e system| softwar|
|00000630| 65 2e 3b 2d 2d 20 44 6f | 20 6e 6f 74 20 75 73 65 |e.;-- Do| not use|
|00000640| 20 6f 6e 65 20 69 6e 73 | 74 61 6e 63 65 27 73 20 | one ins|tance's |
|00000650| 74 61 73 6b 49 44 73 20 | 77 69 74 68 20 61 6e 6f |taskIDs |with ano|
|00000660| 74 68 65 72 20 69 6e 73 | 74 61 6e 63 65 2e 48 2d |ther ins|tance.H-|
|00000670| 2d 20 4f 6e 20 74 68 65 | 20 4d 61 63 2c 20 6f 6e |- On the| Mac, on|
|00000680| 6c 79 20 74 68 65 20 46 | 69 6e 64 65 72 20 68 61 |ly the F|inder ha|
|00000690| 73 20 30 20 66 6f 72 20 | 70 61 72 65 6e 74 54 61 |s 0 for |parentTa|
|000006a0| 73 6b 49 44 2e 20 41 6c | 6c 20 6f 74 68 65 72 20 |skID. Al|l other |
|000006b0| 74 61 73 6b 49 44 73 4a | 2d 2d 20 61 72 65 20 70 |taskIDsJ|-- are p|
|000006c0| 6f 73 69 74 69 76 65 20 | 69 6e 74 65 67 65 72 73 |ositive |integers|
|000006d0| 20 33 32 20 6f 72 20 68 | 69 67 68 65 72 3b 20 61 | 32 or h|igher; a|
|000006e0| 6e 79 20 6f 74 68 65 72 | 20 76 61 6c 75 65 20 69 |ny other| value i|
|000006f0| 6e 64 69 63 61 74 65 73 | 20 61 6e 20 65 72 72 6f |ndicates| an erro|
|00000700| 72 2e 43 2d 2d 20 42 65 | 77 61 72 65 20 6f 66 20 |r.C-- Be|ware of |
|00000710| 74 61 73 6b 4e 61 6d 65 | 73 20 63 6f 6e 74 61 69 |taskName|s contai|
|00000720| 6e 69 6e 67 20 63 6f 6d | 6d 61 73 20 77 68 65 6e |ning com|mas when|
|00000730| 20 69 6e 74 65 72 70 72 | 65 74 69 6e 67 20 72 65 | interpr|eting re|
|00000740| 73 75 6c 74 73 21 0d 53 | 20 6d 47 65 74 54 61 73 |sults!.S| mGetTas|
|00000750| 6b 49 44 73 46 2d 2d 20 | 52 65 74 75 72 6e 73 20 |kIDsF-- |Returns |
|00000760| 61 20 73 74 72 69 6e 67 | 20 6f 66 20 74 68 65 20 |a string| of the |
|00000770| 74 61 73 6b 49 44 73 20 | 6f 66 20 61 6c 6c 20 63 |taskIDs |of all c|
|00000780| 75 72 72 65 6e 74 6c 79 | 20 72 75 6e 6e 69 6e 67 |urrently| running|
|00000790| 20 74 61 73 6b 73 2c 20 | 61 6c 6c 4c 2d 2d 20 6f | tasks, |allL-- o|
|000007a0| 6e 20 6f 6e 65 20 6c 69 | 6e 65 2c 20 73 65 70 61 |n one li|ne, sepa|
|000007b0| 72 61 74 65 64 20 62 79 | 20 73 70 61 63 65 73 2e |rated by| spaces.|
|000007c0| 20 55 73 65 20 27 77 6f | 72 64 27 20 74 6f 20 77 | Use 'wo|rd' to w|
|000007d0| 61 6c 6b 20 74 68 72 6f | 75 67 68 20 74 68 65 20 |alk thro|ugh the |
|000007e0| 72 65 73 75 6c 74 73 2e | 4a 2d 2d 20 54 68 69 73 |results.|J-- This|
|000007f0| 20 69 73 20 6d 6f 72 65 | 20 70 72 65 63 69 73 65 | is more| precise|
|00000800| 20 74 68 61 6e 20 6d 47 | 65 74 54 61 73 6b 4c 69 | than mG|etTaskLi|
|00000810| 73 74 2c 20 62 65 63 61 | 75 73 65 20 61 20 74 61 |st, beca|use a ta|
|00000820| 73 6b 4e 61 6d 65 20 63 | 6f 6e 74 61 69 6e 69 6e |skName c|ontainin|
|00000830| 67 20 61 4c 2d 2d 20 63 | 6f 6d 6d 61 20 77 6f 6e |g aL-- c|omma won|
|00000840| 27 74 20 61 66 66 65 63 | 74 20 74 68 65 20 70 6f |'t affec|t the po|
|00000850| 73 69 74 69 6f 6e 20 6f | 66 20 74 68 65 20 72 65 |sition o|f the re|
|00000860| 73 75 6c 74 73 2e 20 53 | 65 65 20 6d 47 65 74 54 |sults. S|ee mGetT|
|00000870| 61 73 6b 4c 69 73 74 20 | 66 6f 72 20 6d 6f 72 65 |askList |for more|
|00000880| 36 2d 2d 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |6-- info|rmation |
|00000890| 61 62 6f 75 74 20 4d 61 | 63 2d 73 70 65 63 69 66 |about Ma|c-specif|
|000008a0| 69 63 20 69 73 73 75 65 | 73 20 77 69 74 68 20 74 |ic issue|s with t|
|000008b0| 61 73 6b 49 44 73 2e 14 | 53 49 20 6d 54 61 73 6b |askIDs..|SI mTask|
|000008c0| 4e 61 6d 65 2c 20 74 61 | 73 6b 49 44 51 2d 2d 20 |Name, ta|skIDQ-- |
|000008d0| 52 65 74 75 72 6e 73 20 | 69 6e 74 65 72 6e 61 6c |Returns |internal|
|000008e0| 20 6e 61 6d 65 20 66 6f | 72 20 61 20 74 61 73 6b | name fo|r a task|
|000008f0| 49 44 2e 20 4f 6e 20 74 | 68 65 20 4d 61 63 2c 20 |ID. On t|he Mac, |
|00000900| 69 66 20 74 68 65 20 74 | 61 73 6b 20 69 73 20 61 |if the t|ask is a|
|00000910| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2c 4d 2d |n applic|ation,M-|
|00000920| 2d 20 74 68 69 73 20 69 | 73 20 74 68 65 20 73 61 |- this i|s the sa|
|00000930| 6d 65 20 74 65 78 74 20 | 74 68 61 74 27 73 20 64 |me text |that's d|
|00000940| 69 73 70 6c 61 79 65 64 | 20 6f 6e 20 74 68 65 20 |isplayed| on the |
|00000950| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 70 75 6c |applicat|ions pul|
|00000960| 6c 2d 64 6f 77 6e 20 6d | 65 6e 75 2e 3c 2d 2d 20 |l-down m|enu.<-- |
|00000970| 55 73 65 20 6d 4d 6f 64 | 75 6c 65 46 69 6c 65 4e |Use mMod|uleFileN|
|00000980| 61 6d 65 20 74 6f 20 67 | 65 74 20 74 68 65 20 66 |ame to g|et the f|
|00000990| 75 6c 6c 20 66 69 6c 65 | 6e 61 6d 65 20 6f 66 20 |ull file|name of |
|000009a0| 74 68 65 20 74 61 73 6b | 2e 16 49 49 20 6d 54 61 |the task|..II mTa|
|000009b0| 73 6b 50 61 72 65 6e 74 | 2c 20 74 61 73 6b 49 44 |skParent|, taskID|
|000009c0| 22 2d 2d 20 52 65 74 75 | 72 6e 73 20 74 68 65 20 |"-- Retu|rns the |
|000009d0| 74 61 73 6b 27 73 20 70 | 61 72 65 6e 74 20 74 61 |task's p|arent ta|
|000009e0| 73 6b 2e 18 49 49 20 6d | 54 61 73 6b 49 6e 73 74 |sk..II m|TaskInst|
|000009f0| 61 6e 63 65 2c 20 74 61 | 73 6b 49 44 53 2d 2d 20 |ance, ta|skIDS-- |
|00000a00| 52 65 74 75 72 6e 73 20 | 61 20 74 61 73 6b 27 73 |Returns |a task's|
|00000a10| 20 69 6e 73 74 61 6e 63 | 65 49 44 2e 20 4f 6e 20 | instanc|eID. On |
|00000a20| 74 68 65 20 4d 61 63 2c | 20 74 68 65 20 74 61 73 |the Mac,| the tas|
|00000a30| 6b 49 44 20 61 6e 64 20 | 69 6e 73 74 61 6e 63 65 |kID and |instance|
|00000a40| 49 44 20 61 72 65 20 74 | 68 65 20 73 61 6d 65 2e |ID are t|he same.|
|00000a50| 47 2d 2d 20 52 65 74 75 | 72 6e 73 20 74 68 65 20 |G-- Retu|rns the |
|00000a60| 73 61 6d 65 20 49 44 20 | 70 72 6f 76 69 64 65 64 |same ID |provided|
|00000a70| 2c 20 6f 72 20 30 20 69 | 66 20 74 68 65 20 74 61 |, or 0 i|f the ta|
|00000a80| 73 6b 49 44 20 69 73 20 | 6e 6f 20 6c 6f 6e 67 65 |skID is |no longe|
|00000a90| 72 20 76 61 6c 69 64 2e | 16 49 49 20 6d 54 61 73 |r valid.|.II mTas|
|00000aa0| 6b 4d 6f 64 75 6c 65 2c | 20 74 61 73 6b 49 44 4f |kModule,| taskIDO|
|00000ab0| 2d 2d 20 52 65 74 75 72 | 6e 73 20 61 20 74 61 73 |-- Retur|ns a tas|
|00000ac0| 6b 27 73 20 6d 6f 64 75 | 6c 65 49 44 2e 20 4f 6e |k's modu|leID. On|
|00000ad0| 20 74 68 65 20 4d 61 63 | 2c 20 74 68 65 20 74 61 | the Mac|, the ta|
|00000ae0| 73 6b 49 44 20 61 6e 64 | 20 6d 6f 64 75 6c 65 49 |skID and| moduleI|
|00000af0| 44 20 61 72 65 20 74 68 | 65 20 73 61 6d 65 2e 47 |D are th|e same.G|
|00000b00| 2d 2d 20 52 65 74 75 72 | 6e 73 20 74 68 65 20 73 |-- Retur|ns the s|
|00000b10| 61 6d 65 20 49 44 20 70 | 72 6f 76 69 64 65 64 2c |ame ID p|rovided,|
|00000b20| 20 6f 72 20 30 20 69 66 | 20 74 68 65 20 74 61 73 | or 0 if| the tas|
|00000b30| 6b 49 44 20 69 73 20 6e | 6f 20 6c 6f 6e 67 65 72 |kID is n|o longer|
|00000b40| 20 76 61 6c 69 64 2e 16 | 49 49 20 6d 54 61 73 6b | valid..|II mTask|
|00000b50| 45 76 65 6e 74 73 2c 20 | 74 61 73 6b 49 44 4c 2d |Events, |taskIDL-|
|00000b60| 2d 20 52 65 74 75 72 6e | 73 20 74 68 65 20 6e 75 |- Return|s the nu|
|00000b70| 6d 62 65 72 20 6f 66 20 | 65 76 65 6e 74 73 20 77 |mber of |events w|
|00000b80| 61 69 74 69 6e 67 20 66 | 6f 72 20 74 68 65 20 74 |aiting f|or the t|
|00000b90| 61 73 6b 20 74 6f 20 70 | 72 6f 63 65 73 73 2e 20 |ask to p|rocess. |
|00000ba0| 4f 6e 20 74 68 65 20 4d | 61 63 2c 4c 2d 2d 20 74 |On the M|ac,L-- t|
|00000bb0| 68 69 73 20 6e 65 76 65 | 72 20 72 65 74 75 72 6e |his neve|r return|
|00000bc0| 73 20 6d 6f 72 65 20 74 | 68 61 6e 20 31 2c 20 61 |s more t|han 1, a|
|00000bd0| 6e 64 20 61 6c 77 61 79 | 73 20 72 65 74 75 72 6e |nd alway|s return|
|00000be0| 73 20 30 20 66 6f 72 20 | 74 61 73 6b 73 20 6f 74 |s 0 for |tasks ot|
|00000bf0| 68 65 72 20 74 68 61 6e | 4a 2d 2d 20 74 68 65 20 |her than|J-- the |
|00000c00| 44 69 72 65 63 74 6f 72 | 20 74 61 73 6b 20 69 74 |Director| task it|
|00000c10| 73 65 6c 66 20 28 62 65 | 63 61 75 73 65 20 6f 66 |self (be|cause of|
|00000c20| 20 64 69 66 66 65 72 65 | 6e 63 65 73 20 69 6e 20 | differe|nces in |
|00000c30| 74 68 65 20 4d 61 63 20 | 61 6e 64 20 57 69 6e 64 |the Mac |and Wind|
|00000c40| 6f 77 73 43 2d 2d 20 65 | 76 65 6e 74 20 70 72 6f |owsC-- e|vent pro|
|00000c50| 63 65 73 73 69 6e 67 20 | 61 72 63 68 69 74 65 63 |cessing |architec|
|00000c60| 74 75 72 65 29 2e 20 52 | 65 74 75 72 6e 73 20 2d |ture). R|eturns -|
|00000c70| 31 20 69 66 20 74 61 73 | 6b 49 44 20 69 73 20 69 |1 if tas|kID is i|
|00000c80| 6e 76 61 6c 69 64 2e 1d | 53 49 20 6d 47 65 74 54 |nvalid..|SI mGetT|
|00000c90| 61 73 6b 57 69 6e 64 6f | 77 4c 69 73 74 2c 20 74 |askWindo|wList, t|
|00000ca0| 61 73 6b 49 44 4c 2d 2d | 20 47 65 74 20 61 20 6c |askIDL--| Get a l|
|00000cb0| 69 73 74 20 6f 66 20 61 | 6c 6c 20 77 69 6e 64 6f |ist of a|ll windo|
|00000cc0| 77 73 20 6f 77 6e 65 64 | 20 62 79 20 74 68 65 20 |ws owned| by the |
|00000cd0| 74 61 73 6b 2c 20 6f 6e | 65 20 70 65 72 20 6c 69 |task, on|e per li|
|00000ce0| 6e 65 2c 20 69 6e 20 74 | 68 65 20 66 6f 72 6d 61 |ne, in t|he forma|
|00000cf0| 74 3a 42 2d 2d 20 20 20 | 77 69 6e 64 6f 77 4e 61 |t:B-- |windowNa|
|00000d00| 6d 65 2c 20 77 69 6e 64 | 6f 77 49 44 2c 20 70 61 |me, wind|owID, pa|
|00000d10| 72 65 6e 74 57 69 6e 64 | 6f 77 49 44 2c 20 68 61 |rentWind|owID, ha|
|00000d20| 73 43 68 69 6c 64 72 65 | 6e 2c 20 77 69 6e 64 6f |sChildre|n, windo|
|00000d30| 77 54 79 70 65 49 2d 2d | 20 4f 6e 20 74 68 65 20 |wTypeI--| On the |
|00000d40| 4d 61 63 2c 20 70 61 72 | 65 6e 74 57 69 6e 64 6f |Mac, par|entWindo|
|00000d50| 77 49 44 20 69 73 20 61 | 6c 77 61 79 73 20 30 2e |wID is a|lways 0.|
|00000d60| 20 42 65 63 61 75 73 65 | 20 77 69 6e 64 6f 77 4e | Because| windowN|
|00000d70| 61 6d 65 20 6d 61 79 20 | 63 6f 6e 74 61 69 6e 48 |ame may |containH|
|00000d80| 2d 2d 20 63 6f 6d 6d 61 | 73 2c 20 6d 47 65 74 54 |-- comma|s, mGetT|
|00000d90| 61 73 6b 57 69 6e 64 6f | 77 49 44 73 20 69 73 20 |askWindo|wIDs is |
|00000da0| 61 20 6d 6f 72 65 20 62 | 75 6c 6c 65 74 70 72 6f |a more b|ulletpro|
|00000db0| 6f 66 20 6d 65 74 68 6f | 64 20 6f 66 20 69 64 65 |of metho|d of ide|
|00000dc0| 6e 74 69 66 79 69 6e 67 | 0f 2d 2d 20 61 6c 6c 20 |ntifying|.-- all |
|00000dd0| 77 69 6e 64 6f 77 73 2e | 16 58 20 6d 44 6f 6e 74 |windows.|.X mDont|
|00000de0| 55 73 65 4c 61 79 65 72 | 4d 61 6e 61 67 65 72 12 |UseLayer|Manager.|
|00000df0| 58 20 6d 55 73 65 4c 61 | 79 65 72 4d 61 6e 61 67 |X mUseLa|yerManag|
|00000e00| 65 72 4d 2d 2d 20 44 69 | 73 61 6c 6c 6f 77 20 6f |erM-- Di|sallow o|
|00000e10| 72 20 61 6c 6c 6f 77 20 | 75 73 65 20 6f 66 20 74 |r allow |use of t|
|00000e20| 68 65 20 75 6e 64 6f 63 | 75 6d 65 6e 74 65 64 20 |he undoc|umented |
|00000e30| 4c 61 79 65 72 20 4d 61 | 6e 61 67 65 72 20 69 6e |Layer Ma|nager in|
|00000e40| 20 64 65 74 65 63 74 69 | 6e 67 20 6f 74 68 65 72 | detecti|ng other|
|00000e50| 53 2d 2d 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |S-- appl|ications|
|00000e60| 27 20 77 69 6e 64 6f 77 | 73 2e 20 54 68 65 20 4c |' window|s. The L|
|00000e70| 61 79 65 72 20 4d 61 6e | 61 67 65 72 20 69 73 20 |ayer Man|ager is |
|00000e80| 6c 69 6b 65 6c 79 20 6e | 6f 74 20 74 6f 20 77 6f |likely n|ot to wo|
|00000e90| 72 6b 20 77 69 74 68 20 | 66 75 74 75 72 65 20 4d |rk with |future M|
|00000ea0| 61 63 4f 53 53 2d 2d 20 | 6f 70 65 72 61 74 69 6e |acOSS-- |operatin|
|00000eb0| 67 20 73 79 73 74 65 6d | 20 76 65 72 73 69 6f 6e |g system| version|
|00000ec0| 73 20 28 53 79 73 74 65 | 6d 20 38 2e 30 20 26 20 |s (Syste|m 8.0 & |
|00000ed0| 6c 61 74 65 72 2c 20 6f | 72 20 4e 65 78 74 2f 4f |later, o|r Next/O|
|00000ee0| 53 20 72 65 6c 65 61 73 | 65 73 29 2e 20 42 79 20 |S releas|es). By |
|00000ef0| 64 65 66 61 75 6c 74 2c | 56 2d 2d 20 75 73 65 20 |default,|V-- use |
|00000f00| 6f 66 20 74 68 65 20 4c | 61 79 65 72 20 4d 61 6e |of the L|ayer Man|
|00000f10| 61 67 65 72 20 69 73 20 | 61 6c 6c 6f 77 65 64 20 |ager is |allowed |
|00000f20| 69 66 20 74 68 65 20 73 | 79 73 74 65 6d 20 76 65 |if the s|ystem ve|
|00000f30| 72 73 69 6f 6e 20 69 73 | 20 37 2e 31 20 6f 72 20 |rsion is| 7.1 or |
|00000f40| 67 72 65 61 74 65 72 2c | 20 62 75 74 20 69 73 50 |greater,| but isP|
|00000f50| 2d 2d 20 64 69 73 61 6c | 6c 6f 77 65 64 20 69 66 |-- disal|lowed if|
|00000f60| 20 69 74 27 73 20 38 2e | 30 20 6f 72 20 67 72 65 | it's 8.|0 or gre|
|00000f70| 61 74 65 72 2e 20 49 66 | 20 75 73 65 20 6f 66 20 |ater. If| use of |
|00000f80| 74 68 65 20 4c 61 79 65 | 72 20 4d 61 6e 61 67 65 |the Laye|r Manage|
|00000f90| 72 20 69 73 20 64 69 73 | 61 6c 6c 6f 77 65 64 2c |r is dis|allowed,|
|00000fa0| 51 2d 2d 20 79 6f 75 20 | 63 61 6e 20 6f 6e 6c 79 |Q-- you |can only|
|00000fb0| 20 64 65 74 65 63 74 20 | 77 69 6e 64 6f 77 73 20 | detect |windows |
|00000fc0| 6f 66 20 74 68 65 20 44 | 69 72 65 63 74 6f 72 20 |of the D|irector |
|00000fd0| 74 61 73 6b 20 69 74 73 | 65 6c 66 2e 20 4f 6e 63 |task its|elf. Onc|
|00000fe0| 65 20 38 2e 30 20 69 73 | 20 72 65 6c 65 61 73 65 |e 8.0 is| release|
|00000ff0| 64 2c 3f 2d 2d 20 63 68 | 65 63 6b 20 66 6f 72 20 |d,?-- ch|eck for |
|00001000| 66 75 74 75 72 65 20 72 | 65 6c 65 61 73 65 73 20 |future r|eleases |
|00001010| 6f 66 20 74 68 69 73 20 | 58 4f 62 6a 65 63 74 20 |of this |XObject |
|00001020| 20 77 68 69 63 68 20 77 | 69 6c 6c 20 64 65 74 65 | which w|ill dete|
|00001030| 63 74 49 2d 2d 20 6f 74 | 68 65 72 20 61 70 70 27 |ctI-- ot|her app'|
|00001040| 73 20 77 69 6e 64 6f 77 | 73 20 61 63 63 6f 72 64 |s window|s accord|
|00001050| 69 6e 67 20 74 6f 20 38 | 2e 30 20 73 70 65 63 69 |ing to 8|.0 speci|
|00001060| 66 69 63 61 74 69 6f 6e | 73 2e 20 54 68 65 73 65 |fication|s. These|
|00001070| 20 74 77 6f 20 6d 65 74 | 68 6f 64 73 4f 2d 2d 20 | two met|hodsO-- |
|00001080| 61 72 65 20 70 72 6f 76 | 69 64 65 64 20 74 6f 20 |are prov|ided to |
|00001090| 61 6c 6c 6f 77 20 79 6f | 75 20 74 6f 20 6f 76 65 |allow yo|u to ove|
|000010a0| 72 72 69 64 65 20 74 68 | 65 20 64 65 66 61 75 6c |rride th|e defaul|
|000010b0| 74 20 62 65 68 61 76 69 | 6f 72 20 6f 66 20 2a 74 |t behavi|or of *t|
|000010c0| 68 69 73 2a 20 76 65 72 | 73 69 6f 6e 4d 2d 2d 20 |his* ver|sionM-- |
|000010d0| 6f 66 20 74 68 65 20 58 | 4f 62 6a 65 63 74 2c 20 |of the X|Object, |
|000010e0| 77 68 69 63 68 20 73 68 | 6f 75 6c 64 20 62 65 20 |which sh|ould be |
|000010f0| 73 61 66 65 2c 20 69 66 | 20 6e 6f 74 20 66 75 6c |safe, if| not ful|
|00001100| 6c 79 20 66 75 6e 63 74 | 69 6f 6e 61 6c 2c 20 75 |ly funct|ional, u|
|00001110| 6e 64 65 72 20 38 2e 30 | 20 2e 3f 2d 2d 20 54 68 |nder 8.0| .?-- Th|
|00001120| 65 73 65 20 6d 65 74 68 | 6f 64 73 20 6f 6e 6c 79 |ese meth|ods only|
|00001130| 20 65 78 69 73 74 20 69 | 6e 20 74 68 65 20 4d 61 | exist i|n the Ma|
|00001140| 63 20 76 65 72 73 69 6f | 6e 20 6f 66 20 74 68 69 |c versio|n of thi|
|00001150| 73 20 58 4f 62 6a 65 63 | 74 2e 1c 53 49 20 6d 47 |s XObjec|t..SI mG|
|00001160| 65 74 54 61 73 6b 57 69 | 6e 64 6f 77 49 44 73 2c |etTaskWi|ndowIDs,|
|00001170| 20 74 61 73 6b 49 44 4c | 2d 2d 20 52 65 74 75 72 | taskIDL|-- Retur|
|00001180| 6e 73 20 61 20 73 74 72 | 69 6e 67 20 6f 66 20 74 |ns a str|ing of t|
|00001190| 68 65 20 77 69 6e 64 6f | 77 49 44 73 20 6f 66 20 |he windo|wIDs of |
|000011a0| 61 6c 6c 20 74 68 65 20 | 74 61 73 6b 73 27 20 77 |all the |tasks' w|
|000011b0| 69 6e 64 6f 77 73 2c 20 | 6f 6e 20 6f 6e 65 20 6c |indows, |on one l|
|000011c0| 69 6e 65 2c 4c 2d 2d 20 | 73 65 70 61 72 61 74 65 |ine,L-- |separate|
|000011d0| 64 20 62 79 20 73 70 61 | 63 65 73 2e 20 55 73 65 |d by spa|ces. Use|
|000011e0| 20 27 77 6f 72 64 27 20 | 74 6f 20 77 61 6c 6b 20 | 'word' |to walk |
|000011f0| 74 68 72 6f 75 67 68 20 | 74 68 65 20 72 65 73 75 |through |the resu|
|00001200| 6c 74 73 2e 20 4d 6f 72 | 65 20 70 72 65 63 69 73 |lts. Mor|e precis|
|00001210| 65 2d 2d 2d 20 62 75 74 | 20 68 61 72 64 65 72 20 |e--- but| harder |
|00001220| 74 6f 20 75 73 65 20 74 | 68 61 6e 20 6d 47 65 74 |to use t|han mGet|
|00001230| 54 61 73 6b 57 69 6e 64 | 6f 77 4c 69 73 74 2e 1b |TaskWind|owList..|
|00001240| 49 49 20 6d 47 65 74 57 | 69 6e 64 6f 77 54 61 73 |II mGetW|indowTas|
|00001250| 6b 2c 20 77 69 6e 64 6f | 77 49 44 29 2d 2d 20 52 |k, windo|wID)-- R|
|00001260| 65 74 75 72 6e 73 20 74 | 68 65 20 74 61 73 6b 49 |eturns t|he taskI|
|00001270| 44 20 66 6f 72 20 61 20 | 67 69 76 65 6e 20 77 69 |D for a |given wi|
|00001280| 6e 64 6f 77 2e 24 49 49 | 49 20 6d 52 75 64 65 51 |ndow.$II|I mRudeQ|
|00001290| 75 69 74 54 61 73 6b 2c | 20 74 61 73 6b 49 44 2c |uitTask,| taskID,|
|000012a0| 20 65 78 69 74 56 61 6c | 75 65 51 2d 2d 20 46 6f | exitVal|ueQ-- Fo|
|000012b0| 72 63 65 73 20 61 20 74 | 61 73 6b 20 74 6f 20 71 |rces a t|ask to q|
|000012c0| 75 69 74 2e 20 4f 6e 20 | 74 68 65 20 4d 61 63 2c |uit. On |the Mac,|
|000012d0| 20 65 78 69 74 56 61 6c | 75 65 20 69 73 20 69 67 | exitVal|ue is ig|
|000012e0| 6e 6f 72 65 64 2e 20 54 | 68 69 73 20 6d 65 74 68 |nored. T|his meth|
|000012f0| 6f 64 20 69 73 6e 27 74 | 20 61 6c 6c 4c 2d 2d 20 |od isn't| allL-- |
|00001300| 74 68 61 74 20 72 75 64 | 65 20 6f 6e 20 74 68 65 |that rud|e on the|
|00001310| 20 4d 61 63 2d 2d 20 69 | 74 20 73 65 6e 64 73 20 | Mac-- i|t sends |
|00001320| 61 20 53 79 73 74 65 6d | 2d 37 20 73 74 61 6e 64 |a System|-7 stand|
|00001330| 61 72 64 20 27 71 75 69 | 74 27 20 41 70 70 6c 65 |ard 'qui|t' Apple|
|00001340| 45 76 65 6e 74 20 28 6f | 72 4e 2d 2d 20 73 69 6d |Event (o|rN-- sim|
|00001350| 75 6c 61 74 65 73 20 61 | 20 51 75 69 74 20 6d 65 |ulates a| Quit me|
|00001360| 6e 75 20 63 68 6f 69 63 | 65 2c 20 66 6f 72 20 70 |nu choic|e, for p|
|00001370| 72 65 2d 53 79 73 74 65 | 6d 2d 37 20 73 6f 66 74 |re-Syste|m-7 soft|
|00001380| 77 61 72 65 29 2e 20 4e | 6f 74 65 20 74 68 61 74 |ware). N|ote that|
|00001390| 20 74 68 65 20 61 70 70 | 4b 2d 2d 20 79 6f 75 27 | the app|K-- you'|
|000013a0| 72 65 20 74 72 79 69 6e | 67 20 74 6f 20 71 75 69 |re tryin|g to qui|
|000013b0| 74 20 6d 61 79 20 64 69 | 73 70 6c 61 79 20 61 20 |t may di|splay a |
|000013c0| 27 64 6f 6e 27 74 20 73 | 61 76 65 27 2f 27 63 61 |'don't s|ave'/'ca|
|000013d0| 6e 63 65 6c 27 2f 27 73 | 61 76 65 27 20 64 69 61 |ncel'/'s|ave' dia|
|000013e0| 6c 6f 67 2e 4f 2d 2d 20 | 4e 6f 74 65 20 74 68 61 |log.O-- |Note tha|
|000013f0| 74 20 41 70 70 6c 65 53 | 63 72 69 70 74 20 69 73 |t AppleS|cript is|
|00001400| 20 2a 6e 6f 74 2a 20 72 | 65 71 75 69 72 65 64 20 | *not* r|equired |
|00001410| 74 6f 20 62 65 20 69 6e | 73 74 61 6c 6c 65 64 20 |to be in|stalled |
|00001420| 74 6f 20 73 65 6e 64 20 | 41 70 70 6c 65 45 76 65 |to send |AppleEve|
|00001430| 6e 74 73 2e 19 49 49 20 | 6d 54 61 73 6b 49 73 52 |nts..II |mTaskIsR|
|00001440| 75 6e 6e 69 6e 67 2c 20 | 74 61 73 6b 49 44 3b 2d |unning, |taskID;-|
|00001450| 2d 20 52 65 74 75 72 6e | 73 20 54 52 55 45 20 69 |- Return|s TRUE i|
|00001460| 66 20 74 68 65 20 74 61 | 73 6b 20 69 73 20 73 74 |f the ta|sk is st|
|00001470| 69 6c 6c 20 72 75 6e 6e | 69 6e 67 2c 20 46 41 4c |ill runn|ing, FAL|
|00001480| 53 45 20 69 66 20 6e 6f | 74 2e 19 49 49 20 6d 46 |SE if no|t..II mF|
|00001490| 65 65 64 54 69 6d 65 53 | 6c 69 63 65 2c 20 74 61 |eedTimeS|lice, ta|
|000014a0| 73 6b 49 44 4c 2d 2d 20 | 57 61 6b 65 73 20 74 68 |skIDL-- |Wakes th|
|000014b0| 65 20 74 61 73 6b 20 75 | 70 2c 20 61 6e 64 20 61 |e task u|p, and a|
|000014c0| 6c 6c 6f 77 73 20 6f 74 | 68 65 72 20 74 61 73 6b |llows ot|her task|
|000014d0| 73 20 74 6f 20 72 75 6e | 2e 20 4f 6e 20 74 68 65 |s to run|. On the|
|000014e0| 20 4d 61 63 2c 20 74 68 | 69 73 20 6d 65 74 68 6f | Mac, th|is metho|
|000014f0| 64 54 2d 2d 20 64 6f 65 | 73 20 6e 6f 74 20 6e 65 |dT-- doe|s not ne|
|00001500| 63 65 73 73 61 72 69 6c | 79 20 69 6e 73 75 72 65 |cessaril|y insure|
|00001510| 20 74 68 61 74 20 74 68 | 65 20 69 6e 64 69 63 61 | that th|e indica|
|00001520| 74 65 64 20 74 61 73 6b | 20 72 75 6e 73 20 6e 65 |ted task| runs ne|
|00001530| 78 74 20 28 64 75 65 20 | 74 6f 20 64 69 66 66 65 |xt (due |to diffe|
|00001540| 72 65 6e 63 65 73 52 2d | 2d 20 69 6e 20 65 76 65 |rencesR-|- in eve|
|00001550| 6e 74 20 70 72 6f 63 65 | 73 73 69 6e 67 20 61 72 |nt proce|ssing ar|
|00001560| 63 68 69 74 65 63 74 75 | 72 65 29 2c 20 62 75 74 |chitectu|re), but|
|00001570| 20 69 74 20 64 6f 65 73 | 20 6d 61 6b 65 20 69 74 | it does| make it|
|00001580| 20 72 75 6e 20 61 73 20 | 73 6f 6f 6e 20 61 73 20 | run as |soon as |
|00001590| 70 6f 73 73 69 62 6c 65 | 2e 56 2d 2d 20 54 68 69 |possible|.V-- Thi|
|000015a0| 73 20 6d 65 74 68 6f 64 | 20 6d 61 79 20 62 65 20 |s method| may be |
|000015b0| 6e 65 63 65 73 73 61 72 | 79 20 66 6f 72 20 61 70 |necessar|y for ap|
|000015c0| 70 73 20 74 6f 20 70 72 | 6f 63 65 73 73 20 6d 65 |ps to pr|ocess me|
|000015d0| 73 73 61 67 65 73 2e 20 | 45 73 70 65 63 69 61 6c |ssages. |Especial|
|000015e0| 6c 79 20 75 73 65 66 75 | 6c 20 77 69 74 68 69 6e |ly usefu|l within|
|000015f0| 57 2d 2d 20 61 20 4c 69 | 6e 67 6f 20 72 65 70 65 |W-- a Li|ngo repe|
|00001600| 61 74 20 6c 6f 6f 70 2c | 20 77 68 69 63 68 20 6e |at loop,| which n|
|00001610| 6f 72 6d 61 6c 6c 79 20 | 6d 6f 6e 6f 70 6f 6c 69 |ormally |monopoli|
|00001620| 7a 65 73 20 61 6c 6c 20 | 74 69 6d 65 73 6c 69 63 |zes all |timeslic|
|00001630| 65 73 2e 20 52 65 74 75 | 72 6e 73 20 65 72 72 6f |es. Retu|rns erro|
|00001640| 72 20 63 6f 64 65 73 3a | 4b 2d 2d 20 2d 31 3a 20 |r codes:|K-- -1: |
|00001650| 69 6e 76 61 6c 69 64 20 | 74 61 73 6b 49 44 3b 20 |invalid |taskID; |
|00001660| 2d 32 3a 20 74 61 73 6b | 20 77 61 73 20 61 6c 72 |-2: task| was alr|
|00001670| 65 61 64 79 20 72 75 6e | 6e 69 6e 67 20 28 44 69 |eady run|ning (Di|
|00001680| 72 65 63 74 6f 72 20 74 | 61 73 6b 20 69 74 73 65 |rector t|ask itse|
|00001690| 6c 66 29 3b 4c 2d 2d 20 | 30 3a 20 6e 6f 20 65 72 |lf);L-- |0: no er|
|000016a0| 72 6f 72 2e 20 50 6f 73 | 73 69 62 6c 65 20 73 69 |ror. Pos|sible si|
|000016b0| 64 65 20 65 66 66 65 63 | 74 3a 20 74 68 65 20 44 |de effec|t: the D|
|000016c0| 69 72 65 63 74 6f 72 20 | 74 61 73 6b 27 73 20 77 |irector |task's w|
|000016d0| 69 6e 64 6f 77 73 20 6d | 61 79 20 6e 6f 74 20 62 |indows m|ay not b|
|000016e0| 65 51 2d 2d 20 70 72 6f | 70 65 72 6c 79 20 75 70 |eQ-- pro|perly up|
|000016f0| 64 61 74 65 64 20 69 66 | 20 74 68 69 73 20 6d 65 |dated if| this me|
|00001700| 74 68 6f 64 20 69 73 20 | 75 73 65 64 20 77 69 74 |thod is |used wit|
|00001710| 68 69 6e 20 61 20 6c 6f | 6e 67 20 72 65 70 65 61 |hin a lo|ng repea|
|00001720| 74 20 6c 6f 6f 70 20 61 | 6e 64 20 74 68 65 20 75 |t loop a|nd the u|
|00001730| 73 65 72 19 2d 2d 20 73 | 77 69 74 63 68 65 73 20 |ser.-- s|witches |
|00001740| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 2e 17 58 20 |applicat|ions..X |
|00001750| 6d 46 65 65 64 47 65 6e | 65 72 69 63 54 69 6d 65 |mFeedGen|ericTime|
|00001760| 53 6c 69 63 65 4d 2d 2d | 20 47 69 76 65 73 20 75 |SliceM--| Gives u|
|00001770| 70 20 70 72 6f 63 65 73 | 73 6f 72 20 74 69 6d 65 |p proces|sor time|
|00001780| 20 66 6f 72 20 6f 74 68 | 65 72 20 74 61 73 6b 73 | for oth|er tasks|
|00001790| 20 74 6f 20 72 75 6e 2e | 20 55 73 65 66 75 6c 20 | to run.| Useful |
|000017a0| 77 69 74 68 69 6e 20 4c | 69 6e 67 6f 20 72 65 70 |within L|ingo rep|
|000017b0| 65 61 74 44 2d 2d 20 6c | 6f 6f 70 73 2c 20 77 68 |eatD-- l|oops, wh|
|000017c0| 69 63 68 20 6e 6f 72 6d | 61 6c 6c 79 20 6d 6f 6e |ich norm|ally mon|
|000017d0| 6f 70 6f 6c 69 7a 65 20 | 61 6c 6c 20 74 69 6d 65 |opolize |all time|
|000017e0| 73 6c 69 63 65 73 2e 20 | 4e 6f 20 72 65 74 75 72 |slices. |No retur|
|000017f0| 6e 20 76 61 6c 75 65 2e | 3f 2d 2d 20 50 6f 73 73 |n value.|?-- Poss|
|00001800| 69 62 6c 65 20 73 69 64 | 65 20 65 66 66 65 63 74 |ible sid|e effect|
|00001810| 3a 20 74 68 65 20 44 69 | 72 65 63 74 6f 72 20 74 |: the Di|rector t|
|00001820| 61 73 6b 27 73 20 77 69 | 6e 64 6f 77 73 20 6d 61 |ask's wi|ndows ma|
|00001830| 79 20 6e 6f 74 20 62 65 | 51 2d 2d 20 70 72 6f 70 |y not be|Q-- prop|
|00001840| 65 72 6c 79 20 75 70 64 | 61 74 65 64 20 69 66 20 |erly upd|ated if |
|00001850| 74 68 69 73 20 6d 65 74 | 68 6f 64 20 69 73 20 75 |this met|hod is u|
|00001860| 73 65 64 20 77 69 74 68 | 69 6e 20 61 20 6c 6f 6e |sed with|in a lon|
|00001870| 67 20 72 65 70 65 61 74 | 20 6c 6f 6f 70 20 61 6e |g repeat| loop an|
|00001880| 64 20 74 68 65 20 75 73 | 65 72 19 2d 2d 20 73 77 |d the us|er.-- sw|
|00001890| 69 74 63 68 65 73 20 61 | 70 70 6c 69 63 61 74 69 |itches a|pplicati|
|000018a0| 6f 6e 73 2e 0f 49 20 6d | 44 69 72 65 63 74 6f 72 |ons..I m|Director|
|000018b0| 54 61 73 6b 2e 2d 2d 20 | 52 65 74 75 72 6e 73 20 |Task.-- |Returns |
|000018c0| 44 69 72 65 63 74 6f 72 | 20 6f 72 20 74 68 65 20 |Director| or the |
|000018d0| 70 72 6f 6a 65 63 74 6f | 72 27 73 20 74 61 73 6b |projecto|r's task|
|000018e0| 49 44 2e 17 49 49 20 6d | 54 61 73 6b 54 6f 46 72 |ID..II m|TaskToFr|
|000018f0| 6f 6e 74 2c 20 74 61 73 | 6b 49 44 49 2d 2d 20 4d |ont, tas|kIDI-- M|
|00001900| 6f 76 65 73 20 74 68 65 | 20 74 61 73 6b 20 74 6f |oves the| task to|
|00001910| 20 74 68 65 20 66 72 6f | 6e 74 2e 20 44 6f 65 73 | the fro|nt. Does|
|00001920| 20 6e 6f 74 20 65 78 69 | 73 74 20 6f 6e 20 57 69 | not exi|st on Wi|
|00001930| 6e 64 6f 77 73 20 62 65 | 63 61 75 73 65 20 6f 66 |ndows be|cause of|
|00001940| 20 73 6f 6d 65 4c 2d 2d | 20 66 75 6e 64 61 6d 65 | someL--| fundame|
|00001950| 6e 74 61 6c 20 64 69 66 | 66 65 72 65 6e 63 65 73 |ntal dif|ferences|
|00001960| 20 62 65 74 77 65 65 6e | 20 4d 61 63 20 61 6e 64 | between| Mac and|
|00001970| 20 57 69 6e 20 69 6e 20 | 74 68 65 20 77 61 79 20 | Win in |the way |
|00001980| 74 61 73 6b 73 20 61 72 | 65 20 6d 61 6e 61 67 65 |tasks ar|e manage|
|00001990| 64 2e 02 2d 2d 02 2d 2d | 13 2d 2d 20 4d 4f 44 55 |d..--.--|.-- MODU|
|000019a0| 4c 45 20 46 55 4e 43 54 | 49 4f 4e 53 13 2d 2d 20 |LE FUNCT|IONS.-- |
|000019b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000019c0| 10 53 20 6d 47 65 74 4d | 6f 64 75 6c 65 4c 69 73 |.S mGetM|oduleLis|
|000019d0| 74 4b 2d 2d 20 52 65 74 | 75 72 6e 73 20 61 20 73 |tK-- Ret|urns a s|
|000019e0| 74 72 69 6e 67 20 6f 66 | 20 61 6c 6c 20 63 75 72 |tring of| all cur|
|000019f0| 72 65 6e 74 6c 79 20 6c | 6f 61 64 65 64 20 6d 6f |rently l|oaded mo|
|00001a00| 64 75 6c 65 73 2c 20 6f | 6e 65 20 70 65 72 20 6c |dules, o|ne per l|
|00001a10| 69 6e 65 2c 20 77 69 74 | 68 20 74 68 65 3b 2d 2d |ine, wit|h the;--|
|00001a20| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 69 6e 66 6f 72 | followi|ng infor|
|00001a30| 6d 61 74 69 6f 6e 20 6f | 6e 20 65 61 63 68 20 6c |mation o|n each l|
|00001a40| 69 6e 65 2c 20 73 65 70 | 61 72 61 74 65 64 20 62 |ine, sep|arated b|
|00001a50| 79 20 63 6f 6d 6d 61 73 | 3a 29 2d 2d 20 20 20 6d |y commas|:)-- m|
|00001a60| 6f 64 75 6c 65 4e 61 6d | 65 2c 20 6d 6f 64 75 6c |oduleNam|e, modul|
|00001a70| 65 49 44 2c 20 6d 6f 64 | 75 6c 65 46 69 6c 65 4e |eID, mod|uleFileN|
|00001a80| 61 6d 65 4f 2d 2d 20 4e | 6f 74 65 3a 20 73 69 6e |ameO-- N|ote: sin|
|00001a90| 63 65 20 6d 6f 64 75 6c | 65 4e 61 6d 65 20 6f 72 |ce modul|eName or|
|00001aa0| 20 6d 6f 64 75 6c 65 46 | 69 6c 65 4e 61 6d 65 20 | moduleF|ileName |
|00001ab0| 6d 69 67 68 74 20 63 6f | 6e 74 61 69 6e 20 63 6f |might co|ntain co|
|00001ac0| 6d 6d 61 73 2c 20 6d 47 | 65 74 4d 6f 64 75 6c 65 |mmas, mG|etModule|
|00001ad0| 49 44 73 34 2d 2d 20 69 | 73 20 61 20 6d 6f 72 65 |IDs4-- i|s a more|
|00001ae0| 20 62 75 6c 6c 65 74 70 | 72 6f 6f 66 20 77 61 79 | bulletp|roof way|
|00001af0| 20 6f 66 20 6c 69 73 74 | 69 6e 67 20 61 6c 6c 20 | of list|ing all |
|00001b00| 6d 6f 64 75 6c 65 73 2e | 0f 53 20 6d 47 65 74 4d |modules.|.S mGetM|
|00001b10| 6f 64 75 6c 65 49 44 73 | 49 2d 2d 20 52 65 74 75 |oduleIDs|I-- Retu|
|00001b20| 72 6e 73 20 61 20 73 74 | 72 69 6e 67 20 6f 66 20 |rns a st|ring of |
|00001b30| 74 68 65 20 6d 6f 64 75 | 6c 65 49 44 73 20 6f 66 |the modu|leIDs of|
|00001b40| 20 61 6c 6c 20 72 75 6e | 6e 69 6e 67 20 6d 6f 64 | all run|ning mod|
|00001b50| 75 6c 65 73 2c 20 6f 6e | 20 6f 6e 65 20 6c 69 6e |ules, on| one lin|
|00001b60| 65 2c 4b 2d 2d 20 73 65 | 70 61 72 61 74 65 64 20 |e,K-- se|parated |
|00001b70| 62 79 20 73 70 61 63 65 | 73 2e 20 55 73 65 20 27 |by space|s. Use '|
|00001b80| 77 6f 72 64 27 20 74 6f | 20 77 61 6c 6b 20 74 68 |word' to| walk th|
|00001b90| 72 6f 75 67 68 20 74 68 | 65 20 72 65 73 75 6c 74 |rough th|e result|
|00001ba0| 73 2e 20 4f 6e 20 74 68 | 65 20 4d 61 63 2c 25 2d |s. On th|e Mac,%-|
|00001bb0| 2d 20 74 68 69 73 20 69 | 73 20 61 20 73 79 6e 6f |- this i|s a syno|
|00001bc0| 6e 79 6d 20 66 6f 72 20 | 6d 47 65 74 54 61 73 6b |nym for |mGetTask|
|00001bd0| 49 44 73 2e 18 49 49 20 | 6d 4d 6f 64 75 6c 65 54 |IDs..II |mModuleT|
|00001be0| 61 73 6b 2c 20 6d 6f 64 | 75 6c 65 49 44 4f 2d 2d |ask, mod|uleIDO--|
|00001bf0| 20 52 65 74 75 72 6e 73 | 20 74 61 73 6b 69 64 49 | Returns| taskidI|
|00001c00| 44 20 6f 66 20 74 68 65 | 20 67 69 76 65 6e 20 6d |D of the| given m|
|00001c10| 6f 64 75 6c 65 49 44 20 | 28 61 6c 77 61 79 73 20 |oduleID |(always |
|00001c20| 74 68 65 20 73 61 6d 65 | 20 6e 75 6d 62 65 72 2c |the same| number,|
|00001c30| 20 6f 6e 20 74 68 65 20 | 4d 61 63 29 2e 1c 53 49 | on the |Mac)..SI|
|00001c40| 20 6d 4d 6f 64 75 6c 65 | 46 69 6c 65 4e 61 6d 65 | mModule|FileName|
|00001c50| 2c 20 6d 6f 64 75 6c 65 | 49 44 4b 2d 2d 20 47 65 |, module|IDK-- Ge|
|00001c60| 74 20 66 75 6c 6c 20 70 | 61 74 68 20 74 6f 20 61 |t full p|ath to a|
|00001c70| 20 74 61 73 6b 27 73 20 | 61 70 70 6c 69 63 61 74 | task's |applicat|
|00001c80| 69 6f 6e 20 66 69 6c 65 | 2e 20 43 61 6e 20 75 73 |ion file|. Can us|
|00001c90| 65 20 61 20 74 61 73 6b | 49 44 20 6f 6e 20 74 68 |e a task|ID on th|
|00001ca0| 65 20 4d 61 63 2e 13 53 | 20 6d 44 69 72 65 63 74 |e Mac..S| mDirect|
|00001cb0| 6f 72 46 69 6c 65 4e 61 | 6d 65 2f 2d 2d 20 52 65 |orFileNa|me/-- Re|
|00001cc0| 74 75 72 6e 73 20 74 68 | 65 20 66 69 6c 65 6e 61 |turns th|e filena|
|00001cd0| 6d 65 20 6f 66 20 74 68 | 65 20 44 69 72 65 63 74 |me of th|e Direct|
|00001ce0| 6f 72 20 6d 6f 64 75 6c | 65 2e 18 53 49 20 6d 4d |or modul|e..SI mM|
|00001cf0| 6f 64 75 6c 65 4e 61 6d | 65 2c 20 6d 6f 64 75 6c |oduleNam|e, modul|
|00001d00| 65 49 44 52 2d 2d 20 47 | 65 74 20 6d 6f 64 75 6c |eIDR-- G|et modul|
|00001d10| 65 20 6e 61 6d 65 2e 20 | 4f 6e 20 74 68 65 20 4d |e name. |On the M|
|00001d20| 61 63 2c 20 74 68 69 73 | 20 69 73 20 74 68 65 20 |ac, this| is the |
|00001d30| 61 70 70 27 73 20 63 72 | 65 61 74 6f 72 20 61 6e |app's cr|eator an|
|00001d40| 64 20 66 69 6c 65 74 79 | 70 65 20 73 69 67 6e 61 |d filety|pe signa|
|00001d50| 74 75 72 65 73 2c 42 2d | 2d 20 72 65 74 75 72 6e |tures,B-|- return|
|00001d60| 65 64 20 61 73 20 61 6e | 20 38 2d 63 68 61 72 61 |ed as an| 8-chara|
|00001d70| 63 74 65 72 20 73 74 72 | 69 6e 67 2e 20 43 61 6e |cter str|ing. Can|
|00001d80| 20 75 73 65 20 61 20 74 | 61 73 6b 49 44 20 6f 6e | use a t|askID on|
|00001d90| 20 74 68 65 20 4d 61 63 | 2e 1d 49 49 20 6d 4d 6f | the Mac|..II mMo|
|00001da0| 64 75 6c 65 49 73 52 75 | 6e 6e 69 6e 67 2c 20 6d |duleIsRu|nning, m|
|00001db0| 6f 64 75 6c 65 49 44 51 | 2d 2d 20 52 65 74 75 72 |oduleIDQ|-- Retur|
|00001dc0| 6e 73 20 54 52 55 45 20 | 69 66 20 74 68 65 20 6d |ns TRUE |if the m|
|00001dd0| 6f 64 75 6c 65 20 69 73 | 20 73 74 69 6c 6c 20 72 |odule is| still r|
|00001de0| 75 6e 6e 69 6e 67 2c 20 | 66 61 6c 73 65 20 69 66 |unning, |false if|
|00001df0| 20 6e 6f 74 2e 20 4f 6e | 20 74 68 65 20 4d 61 63 | not. On| the Mac|
|00001e00| 2c 20 74 68 69 73 20 69 | 73 20 2d 2d 20 61 20 73 |, this i|s -- a s|
|00001e10| 79 6e 6f 6e 79 6d 20 66 | 6f 72 20 6d 54 61 73 6b |ynonym f|or mTask|
|00001e20| 49 73 52 75 6e 6e 69 6e | 67 2e 25 49 49 53 20 6d |IsRunnin|g.%IIS m|
|00001e30| 55 6e 6c 6f 61 64 4d 6f | 64 75 6c 65 2c 20 6d 6f |UnloadMo|dule, mo|
|00001e40| 64 75 6c 65 49 44 2c 20 | 61 70 70 4f 72 44 6c 6c |duleID, |appOrDll|
|00001e50| 4b 2d 2d 20 46 6f 72 63 | 65 20 61 20 6d 6f 64 75 |K-- Forc|e a modu|
|00001e60| 6c 65 20 74 6f 20 71 75 | 69 74 2e 20 55 73 65 73 |le to qu|it. Uses|
|00001e70| 20 74 68 65 20 73 61 6d | 65 20 61 70 70 72 6f 61 | the sam|e approa|
|00001e80| 63 68 20 61 73 20 6d 54 | 61 73 6b 51 75 69 74 2c |ch as mT|askQuit,|
|00001e90| 20 62 75 74 20 6d 61 74 | 63 68 65 73 47 2d 2d 20 | but mat|chesG-- |
|00001ea0| 74 68 65 20 73 79 6e 74 | 61 78 20 6f 66 20 74 68 |the synt|ax of th|
|00001eb0| 65 20 57 69 6e 64 6f 77 | 73 20 6d 65 74 68 6f 64 |e Window|s method|
|00001ec0| 2e 20 61 70 70 4f 72 44 | 6c 6c 20 69 73 20 69 72 |. appOrD|ll is ir|
|00001ed0| 72 65 6c 65 76 61 6e 74 | 20 6f 6e 20 74 68 65 20 |relevant| on the |
|00001ee0| 4d 61 63 2e 11 49 20 6d | 44 69 72 65 63 74 6f 72 |Mac..I m|Director|
|00001ef0| 4d 6f 64 75 6c 65 4b 2d | 2d 20 52 65 74 75 72 6e |ModuleK-|- Return|
|00001f00| 73 20 74 68 65 20 6d 6f | 64 75 6c 65 49 44 20 6f |s the mo|duleID o|
|00001f10| 66 20 74 68 65 20 44 69 | 72 65 63 74 6f 72 20 74 |f the Di|rector t|
|00001f20| 61 73 6b 2e 20 4f 6e 20 | 74 68 65 20 4d 61 63 2c |ask. On |the Mac,|
|00001f30| 20 74 68 69 73 20 69 73 | 20 61 20 73 79 6e 6f 6e | this is| a synon|
|00001f40| 79 6d 15 2d 2d 20 66 6f | 72 20 6d 44 69 72 65 63 |ym.-- fo|r mDirec|
|00001f50| 74 6f 72 54 61 73 6b 2e | 02 2d 2d 02 2d 2d 13 2d |torTask.|.--.--.-|
|00001f60| 2d 20 57 49 4e 44 4f 57 | 20 46 55 4e 43 54 49 4f |- WINDOW| FUNCTIO|
|00001f70| 4e 53 13 2d 2d 20 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |NS.-- --|--------|
|00001f80| 2d 2d 2d 2d 2d 2d 02 2d | 2d 16 53 20 6d 47 65 74 |------.-|-.S mGet|
|00001f90| 50 61 72 65 6e 74 57 69 | 6e 64 6f 77 4c 69 73 74 |ParentWi|ndowList|
|00001fa0| 4d 2d 2d 20 52 65 74 75 | 72 6e 73 20 61 20 73 74 |M-- Retu|rns a st|
|00001fb0| 72 69 6e 67 20 6f 66 20 | 61 6c 6c 20 74 6f 70 2d |ring of |all top-|
|00001fc0| 6c 65 76 65 6c 20 77 69 | 6e 64 6f 77 73 20 6f 77 |level wi|ndows ow|
|00001fd0| 6e 65 64 20 62 79 20 61 | 6c 6c 20 74 61 73 6b 73 |ned by a|ll tasks|
|00001fe0| 2c 20 6f 6e 65 20 70 65 | 72 20 6c 69 6e 65 2f 2d |, one pe|r line/-|
|00001ff0| 2d 20 77 69 74 68 20 74 | 68 65 20 66 6f 6c 6c 6f |- with t|he follo|
|00002000| 77 69 6e 67 20 69 6e 66 | 6f 20 73 65 70 61 72 61 |wing inf|o separa|
|00002010| 74 65 64 20 62 79 20 63 | 6f 6d 6d 61 73 3a 42 2d |ted by c|ommas:B-|
|00002020| 2d 20 20 20 77 69 6e 64 | 6f 77 4e 61 6d 65 2c 20 |- wind|owName, |
|00002030| 77 69 6e 64 6f 77 49 44 | 2c 20 70 61 72 65 6e 74 |windowID|, parent|
|00002040| 57 69 6e 64 6f 77 49 44 | 2c 20 68 61 73 43 68 69 |WindowID|, hasChi|
|00002050| 6c 64 72 65 6e 2c 20 77 | 69 6e 64 6f 77 54 79 70 |ldren, w|indowTyp|
|00002060| 65 50 2d 2d 20 54 6f 70 | 2d 6c 65 76 65 6c 20 77 |eP-- Top|-level w|
|00002070| 69 6e 64 6f 77 73 20 61 | 6c 77 61 79 73 20 68 61 |indows a|lways ha|
|00002080| 76 65 20 70 61 72 65 6e | 74 49 44 20 30 2c 20 62 |ve paren|tID 0, b|
|00002090| 75 74 20 74 68 65 20 64 | 61 74 61 20 66 6f 72 6d |ut the d|ata form|
|000020a0| 61 74 20 72 65 74 75 72 | 6e 65 64 20 69 73 20 74 |at retur|ned is t|
|000020b0| 68 65 4e 2d 2d 20 73 61 | 6d 65 20 64 61 74 61 20 |heN-- sa|me data |
|000020c0| 66 6f 72 6d 61 74 20 72 | 65 74 75 72 6e 65 64 20 |format r|eturned |
|000020d0| 62 79 20 6d 47 65 74 43 | 68 69 6c 64 57 69 6e 64 |by mGetC|hildWind|
|000020e0| 6f 77 4c 69 73 74 2e 20 | 42 65 63 61 75 73 65 20 |owList. |Because |
|000020f0| 77 69 6e 64 6f 77 4e 61 | 6d 65 73 20 6d 69 67 68 |windowNa|mes migh|
|00002100| 74 41 2d 2d 20 63 6f 6e | 74 61 69 6e 20 63 6f 6d |tA-- con|tain com|
|00002110| 6d 61 73 2c 20 75 73 69 | 6e 67 20 6d 47 65 74 50 |mas, usi|ng mGetP|
|00002120| 61 72 65 6e 74 57 69 6e | 64 6f 77 49 44 73 20 69 |arentWin|dowIDs i|
|00002130| 73 20 6d 6f 72 65 20 62 | 75 6c 6c 65 74 70 72 6f |s more b|ulletpro|
|00002140| 6f 66 2e 15 53 20 6d 47 | 65 74 50 61 72 65 6e 74 |of..S mG|etParent|
|00002150| 57 69 6e 64 6f 77 49 44 | 73 4b 2d 2d 20 52 65 74 |WindowID|sK-- Ret|
|00002160| 75 72 6e 73 20 61 20 73 | 74 72 69 6e 67 20 6f 66 |urns a s|tring of|
|00002170| 20 74 68 65 20 77 69 6e | 64 6f 77 49 44 73 20 6f | the win|dowIDs o|
|00002180| 66 20 61 6c 6c 20 74 6f | 70 2d 6c 65 76 65 6c 20 |f all to|p-level |
|00002190| 77 69 6e 64 6f 77 73 2c | 20 6f 6e 20 6f 6e 65 20 |windows,| on one |
|000021a0| 6c 69 6e 65 2c 3f 2d 2d | 20 73 65 70 61 72 61 74 |line,?--| separat|
|000021b0| 65 64 20 62 79 20 73 70 | 61 63 65 73 2e 20 55 73 |ed by sp|aces. Us|
|000021c0| 65 20 27 77 6f 72 64 27 | 20 74 6f 20 77 61 6c 6b |e 'word'| to walk|
|000021d0| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 72 65 73 | through| the res|
|000021e0| 75 6c 74 73 2e 20 53 49 | 20 6d 47 65 74 43 68 69 |ults. SI| mGetChi|
|000021f0| 6c 64 57 69 6e 64 6f 77 | 4c 69 73 74 2c 20 77 69 |ldWindow|List, wi|
|00002200| 6e 64 6f 77 49 44 48 2d | 2d 20 52 65 74 75 72 6e |ndowIDH-|- Return|
|00002210| 73 20 61 20 73 74 72 69 | 6e 67 20 6f 66 20 61 6c |s a stri|ng of al|
|00002220| 6c 20 63 68 69 6c 64 20 | 77 69 6e 64 6f 77 73 20 |l child |windows |
|00002230| 6f 77 6e 65 64 20 62 79 | 20 74 68 65 20 77 69 6e |owned by| the win|
|00002240| 64 6f 77 2c 20 6f 6e 65 | 20 77 69 6e 64 6f 77 4c |dow, one| windowL|
|00002250| 2d 2d 20 70 65 72 20 6c | 69 6e 65 2c 20 77 69 74 |-- per l|ine, wit|
|00002260| 68 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |h the fo|llowing |
|00002270| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 73 65 70 61 |informat|ion sepa|
|00002280| 72 74 65 64 20 62 79 20 | 63 6f 6d 6d 61 73 20 6f |rted by |commas o|
|00002290| 6e 20 65 61 63 68 20 6c | 69 6e 65 3a 42 2d 2d 20 |n each l|ine:B-- |
|000022a0| 20 20 77 69 6e 64 6f 77 | 4e 61 6d 65 2c 20 77 69 | window|Name, wi|
|000022b0| 6e 64 6f 77 49 44 2c 20 | 70 61 72 65 6e 74 57 69 |ndowID, |parentWi|
|000022c0| 6e 64 6f 77 49 44 2c 20 | 68 61 73 43 68 69 6c 64 |ndowID, |hasChild|
|000022d0| 72 65 6e 2c 20 77 69 6e | 64 6f 77 54 79 70 65 46 |ren, win|dowTypeF|
|000022e0| 2d 2d 20 53 69 6e 63 65 | 20 77 69 6e 64 6f 77 4e |-- Since| windowN|
|000022f0| 61 6d 65 20 6d 69 67 68 | 74 20 63 6f 6e 74 61 69 |ame migh|t contai|
|00002300| 6e 20 63 6f 6d 6d 61 73 | 2c 20 6d 47 65 74 43 68 |n commas|, mGetCh|
|00002310| 69 6c 64 57 69 6e 64 6f | 77 49 44 73 20 69 73 20 |ildWindo|wIDs is |
|00002320| 61 20 6d 6f 72 65 30 2d | 2d 20 62 75 6c 6c 65 74 |a more0-|- bullet|
|00002330| 70 72 6f 6f 66 20 77 61 | 79 20 6f 66 20 6c 69 73 |proof wa|y of lis|
|00002340| 74 69 6e 67 20 61 6c 6c | 20 63 68 69 6c 64 20 77 |ting all| child w|
|00002350| 69 6e 64 6f 77 73 2e 1f | 53 49 20 6d 47 65 74 43 |indows..|SI mGetC|
|00002360| 68 69 6c 64 57 69 6e 64 | 6f 77 49 44 73 2c 20 77 |hildWind|owIDs, w|
|00002370| 69 6e 64 6f 77 49 44 4a | 2d 2d 20 52 65 74 75 72 |indowIDJ|-- Retur|
|00002380| 6e 73 20 61 20 73 74 72 | 69 6e 67 20 6f 66 20 61 |ns a str|ing of a|
|00002390| 6c 6c 20 63 68 69 6c 64 | 20 77 69 6e 64 6f 77 73 |ll child| windows|
|000023a0| 20 6f 77 6e 65 64 20 62 | 79 20 74 68 65 20 77 69 | owned b|y the wi|
|000023b0| 6e 64 6f 77 2c 20 6f 6e | 20 6f 6e 65 20 6c 69 6e |ndow, on| one lin|
|000023c0| 65 2c 3e 2d 2d 20 73 65 | 70 61 72 61 74 65 64 20 |e,>-- se|parated |
|000023d0| 62 79 20 73 70 61 63 65 | 73 2e 20 55 73 65 20 27 |by space|s. Use '|
|000023e0| 77 6f 72 64 27 20 74 6f | 20 77 61 6c 6b 20 74 68 |word' to| walk th|
|000023f0| 6f 75 67 68 20 74 68 65 | 20 72 65 73 75 6c 74 73 |ough the| results|
|00002400| 2e 1a 49 49 20 6d 57 69 | 6e 64 6f 77 50 61 72 65 |..II mWi|ndowPare|
|00002410| 6e 74 2c 20 77 69 6e 64 | 6f 77 49 44 4a 2d 2d 20 |nt, wind|owIDJ-- |
|00002420| 52 65 74 75 72 6e 73 20 | 74 68 65 20 77 69 6e 64 |Returns |the wind|
|00002430| 6f 77 49 44 20 6f 66 20 | 74 68 65 20 70 61 72 65 |owID of |the pare|
|00002440| 6e 74 20 6f 66 20 74 68 | 65 20 73 75 70 70 6c 69 |nt of th|e suppli|
|00002450| 65 64 20 77 69 6e 64 6f | 77 20 28 30 20 69 66 20 |ed windo|w (0 if |
|00002460| 69 74 27 73 20 61 2e 43 | 2d 2d 20 74 6f 70 2d 6c |it's a.C|-- top-l|
|00002470| 65 76 65 6c 20 77 69 6e | 64 6f 77 2c 20 6f 72 20 |evel win|dow, or |
|00002480| 2d 31 20 69 66 20 74 68 | 65 20 73 75 70 70 6c 69 |-1 if th|e suppli|
|00002490| 65 64 20 77 69 6e 64 6f | 77 49 44 20 63 61 6e 27 |ed windo|wID can'|
|000024a0| 74 20 62 65 20 66 6f 75 | 6e 64 2e 1d 49 49 20 6d |t be fou|nd..II m|
|000024b0| 47 65 74 57 69 6e 64 6f | 77 50 61 72 65 6e 74 2c |GetWindo|wParent,|
|000024c0| 20 77 69 6e 64 6f 77 49 | 44 46 2d 2d 20 53 79 6e | windowI|DF-- Syn|
|000024d0| 6f 6e 79 6d 20 66 6f 72 | 20 6d 57 69 6e 64 6f 77 |onym for| mWindow|
|000024e0| 50 61 72 65 6e 74 2c 20 | 66 6f 72 20 63 6f 6d 70 |Parent, |for comp|
|000024f0| 61 74 69 62 69 6c 69 74 | 79 20 77 69 74 68 20 65 |atibilit|y with e|
|00002500| 61 72 6c 69 65 72 20 72 | 65 6c 65 61 73 65 73 2e |arlier r|eleases.|
|00002510| 24 49 49 20 6d 47 65 74 | 48 69 67 68 65 73 74 57 |$II mGet|HighestW|
|00002520| 69 6e 64 6f 77 50 61 72 | 65 6e 74 2c 20 77 69 6e |indowPar|ent, win|
|00002530| 64 6f 77 49 44 47 2d 2d | 20 52 65 74 75 72 6e 73 |dowIDG--| Returns|
|00002540| 20 74 68 65 20 77 69 6e | 64 6f 77 49 44 20 6f 66 | the win|dowID of|
|00002550| 20 74 68 65 20 74 6f 70 | 20 6c 65 76 65 6c 20 70 | the top| level p|
|00002560| 61 72 65 6e 74 2c 20 63 | 6c 69 6d 62 69 6e 67 20 |arent, c|limbing |
|00002570| 74 68 65 20 68 65 69 72 | 61 72 63 68 79 4f 2d 2d |the heir|archyO--|
|00002580| 20 6f 66 20 77 69 6e 64 | 6f 77 20 6f 77 6e 65 72 | of wind|ow owner|
|00002590| 73 68 69 70 20 61 73 20 | 66 61 72 20 62 61 63 6b |ship as |far back|
|000025a0| 77 61 72 64 73 20 61 73 | 20 70 6f 73 73 69 62 6c |wards as| possibl|
|000025b0| 65 2e 20 52 65 74 75 72 | 6e 73 20 2d 31 20 69 66 |e. Retur|ns -1 if|
|000025c0| 20 74 68 65 20 73 75 70 | 70 6c 69 65 64 50 2d 2d | the sup|pliedP--|
|000025d0| 20 77 69 6e 64 6f 77 49 | 44 20 63 61 6e 27 74 20 | windowI|D can't |
|000025e0| 62 65 20 66 6f 75 6e 64 | 3b 20 72 65 74 75 72 6e |be found|; return|
|000025f0| 73 20 74 68 65 20 73 75 | 70 70 6c 69 65 64 20 77 |s the su|pplied w|
|00002600| 69 6e 64 6f 77 49 44 20 | 66 6f 72 20 74 6f 70 2d |indowID |for top-|
|00002610| 6c 65 76 65 6c 20 77 69 | 6e 64 6f 77 73 2e 15 49 |level wi|ndows..I|
|00002620| 20 6d 44 69 72 65 63 74 | 6f 72 4d 61 69 6e 57 69 | mDirect|orMainWi|
|00002630| 6e 64 6f 77 4e 2d 2d 20 | 52 65 74 75 72 6e 73 20 |ndowN-- |Returns |
|00002640| 74 68 65 20 6d 61 69 6e | 20 77 69 6e 64 6f 77 49 |the main| windowI|
|00002650| 44 20 6f 66 20 44 69 72 | 65 63 74 6f 72 20 6f 72 |D of Dir|ector or|
|00002660| 20 74 68 65 20 70 72 6f | 6a 65 63 74 6f 72 2e 20 | the pro|jector. |
|00002670| 4f 6e 20 74 68 65 20 4d | 61 63 2c 20 74 68 69 73 |On the M|ac, this|
|00002680| 20 69 73 4b 2d 2d 20 74 | 68 65 20 73 61 6d 65 20 | isK-- t|he same |
|00002690| 77 69 6e 64 6f 77 20 61 | 73 20 74 68 65 20 73 74 |window a|s the st|
|000026a0| 61 67 65 20 69 74 73 65 | 6c 66 2e 20 53 65 65 20 |age itse|lf. See |
|000026b0| 6e 6f 74 65 73 20 66 6f | 72 20 6d 44 69 72 65 63 |notes fo|r mDirec|
|000026c0| 74 6f 72 53 74 61 67 65 | 57 69 6e 64 6f 77 2e 16 |torStage|Window..|
|000026d0| 49 20 6d 44 69 72 65 63 | 74 6f 72 53 74 61 67 65 |I mDirec|torStage|
|000026e0| 57 69 6e 64 6f 77 4e 2d | 2d 20 52 65 74 75 72 6e |WindowN-|- Return|
|000026f0| 73 20 74 68 65 20 77 69 | 6e 64 6f 77 49 44 20 6f |s the wi|ndowID o|
|00002700| 66 20 74 68 65 20 44 69 | 72 65 63 74 6f 72 20 6f |f the Di|rector o|
|00002710| 72 20 70 72 6f 6a 65 63 | 74 6f 72 20 73 74 61 67 |r projec|tor stag|
|00002720| 65 2e 20 4f 6e 20 74 68 | 65 20 4d 61 63 2c 74 68 |e. On th|e Mac,th|
|00002730| 69 73 20 69 73 4d 2d 2d | 20 74 68 65 20 73 61 6d |is isM--| the sam|
|00002740| 65 20 77 69 6e 64 6f 77 | 20 61 73 20 74 68 65 20 |e window| as the |
|00002750| 6f 6e 65 20 72 65 74 75 | 72 6e 65 64 20 62 79 20 |one retu|rned by |
|00002760| 6d 44 69 72 65 63 74 6f | 72 4d 61 69 6e 57 69 6e |mDirecto|rMainWin|
|00002770| 64 6f 77 2e 20 4e 6f 74 | 65 20 74 68 61 74 20 74 |dow. Not|e that t|
|00002780| 68 69 73 4b 2d 2d 20 77 | 69 6e 64 6f 77 49 44 20 |hisK-- w|indowID |
|00002790| 63 61 6e 20 63 68 61 6e | 67 65 20 69 66 20 74 68 |can chan|ge if th|
|000027a0| 65 20 6d 6f 6e 69 74 6f | 72 20 63 6f 6c 6f 72 20 |e monito|r color |
|000027b0| 64 65 70 74 68 20 6f 72 | 20 73 69 7a 65 20 69 73 |depth or| size is|
|000027c0| 20 63 68 61 6e 67 65 64 | 20 6c 61 74 65 72 2e 48 | changed| later.H|
|000027d0| 2d 2d 20 59 6f 75 20 63 | 61 6e 20 64 65 74 65 63 |-- You c|an detec|
|000027e0| 74 20 74 68 69 73 20 77 | 69 74 68 20 6d 57 69 6e |t this w|ith mWin|
|000027f0| 64 6f 77 45 78 69 73 74 | 73 2c 20 61 6e 64 20 79 |dowExist|s, and y|
|00002800| 6f 75 20 63 61 6e 20 67 | 65 74 20 74 68 65 20 6e |ou can g|et the n|
|00002810| 65 77 20 73 74 61 67 65 | 4d 2d 2d 20 77 69 6e 64 |ew stage|M-- wind|
|00002820| 6f 77 20 62 79 20 63 72 | 65 61 74 69 6e 67 20 61 |ow by cr|eating a|
|00002830| 20 6e 65 77 20 4d 61 73 | 74 65 72 41 70 70 20 69 | new Mas|terApp i|
|00002840| 6e 73 74 61 6e 63 65 20 | 61 6e 64 20 75 73 69 6e |nstance |and usin|
|00002850| 67 20 6d 44 69 72 65 63 | 74 6f 72 53 74 61 67 65 |g mDirec|torStage|
|00002860| 57 69 6e 64 6f 77 4a 2d | 2d 20 77 69 74 68 20 74 |WindowJ-|- with t|
|00002870| 68 61 74 20 69 6e 73 74 | 61 6e 63 65 2e 20 4e 6f |hat inst|ance. No|
|00002880| 74 65 20 74 68 61 74 20 | 74 61 73 6b 49 44 73 2c |te that |taskIDs,|
|00002890| 20 6d 6f 64 75 6c 65 49 | 44 73 20 61 6e 64 20 69 | moduleI|Ds and i|
|000028a0| 6e 73 74 61 6e 63 65 49 | 44 73 20 63 61 6e 20 62 |nstanceI|Ds can b|
|000028b0| 65 49 2d 2d 20 64 69 66 | 66 65 72 65 6e 74 20 69 |eI-- dif|ferent i|
|000028c0| 6e 20 61 20 6e 65 77 20 | 4d 61 73 74 65 72 41 70 |n a new |MasterAp|
|000028d0| 70 20 6f 62 6a 65 63 74 | 2d 2d 20 74 68 65 73 65 |p object|-- these|
|000028e0| 20 49 44 73 20 61 72 65 | 20 75 6e 69 71 75 65 20 | IDs are| unique |
|000028f0| 70 65 72 2d 6f 62 6a 65 | 63 74 2e 18 53 49 20 6d |per-obje|ct..SI m|
|00002900| 57 69 6e 64 6f 77 4e 61 | 6d 65 2c 20 77 69 6e 64 |WindowNa|me, wind|
|00002910| 6f 77 49 44 34 2d 2d 20 | 52 65 74 75 72 6e 73 20 |owID4-- |Returns |
|00002920| 74 68 65 20 77 69 6e 64 | 6f 77 20 6e 61 6d 65 20 |the wind|ow name |
|00002930| 6f 66 20 74 68 65 20 73 | 75 70 70 6c 69 65 64 20 |of the s|upplied |
|00002940| 77 69 6e 64 6f 77 49 44 | 2e 1b 53 49 20 6d 47 65 |windowID|..SI mGe|
|00002950| 74 57 69 6e 64 6f 77 4e | 61 6d 65 2c 20 77 69 6e |tWindowN|ame, win|
|00002960| 64 6f 77 49 44 44 2d 2d | 20 53 79 6e 6f 6e 79 6d |dowIDD--| Synonym|
|00002970| 20 66 6f 72 20 6d 57 69 | 6e 64 6f 77 4e 61 6d 65 | for mWi|ndowName|
|00002980| 2c 20 66 6f 72 20 63 6f | 6d 70 61 74 69 62 69 6c |, for co|mpatibil|
|00002990| 69 74 79 20 77 69 74 68 | 20 65 61 72 6c 69 65 72 |ity with| earlier|
|000029a0| 20 72 65 6c 65 61 73 65 | 73 2e 25 49 49 53 20 6d | release|s.%IIS m|
|000029b0| 53 65 74 57 69 6e 64 6f | 77 4e 61 6d 65 2c 20 77 |SetWindo|wName, w|
|000029c0| 69 6e 64 6f 77 49 44 2c | 20 6e 65 77 54 65 78 74 |indowID,| newText|
|000029d0| 4f 2d 2d 20 53 65 74 73 | 20 74 68 65 20 77 69 6e |O-- Sets| the win|
|000029e0| 64 6f 77 27 73 20 6e 61 | 6d 65 2e 20 4e 6f 74 65 |dow's na|me. Note|
|000029f0| 3a 20 74 68 69 73 20 6d | 61 79 20 68 61 76 65 20 |: this m|ay have |
|00002a00| 73 69 64 65 20 65 66 66 | 65 63 74 73 20 69 66 20 |side eff|ects if |
|00002a10| 74 68 65 20 61 70 70 20 | 64 6f 65 73 20 6e 6f 74 |the app |does not|
|00002a20| 54 2d 2d 20 65 78 70 65 | 63 74 20 74 68 65 20 77 |T-- expe|ct the w|
|00002a30| 69 6e 64 6f 77 27 73 20 | 6e 61 6d 65 20 74 6f 20 |indow's |name to |
|00002a40| 63 68 61 6e 67 65 2e 20 | 54 65 73 74 69 6e 67 20 |change. |Testing |
|00002a50| 69 73 20 72 65 71 75 69 | 72 65 64 21 20 52 65 74 |is requi|red! Ret|
|00002a60| 75 72 6e 73 20 30 20 69 | 66 20 73 75 63 63 65 73 |urns 0 i|f succes|
|00002a70| 73 66 75 6c 2c 47 2d 2d | 20 6f 72 20 6e 6f 6e 2d |sful,G--| or non-|
|00002a80| 7a 65 72 6f 20 69 66 20 | 61 6e 20 65 72 72 6f 72 |zero if |an error|
|00002a90| 20 6f 63 63 75 72 73 20 | 28 74 79 70 69 63 61 6c | occurs |(typical|
|00002aa0| 6c 79 2c 20 61 20 62 61 | 64 20 77 69 6e 64 6f 77 |ly, a ba|d window|
|00002ab0| 49 44 20 73 75 70 70 6c | 69 65 64 29 2e 1f 49 49 |ID suppl|ied)..II|
|00002ac0| 20 6d 57 69 6e 64 6f 77 | 48 61 73 43 68 69 6c 64 | mWindow|HasChild|
|00002ad0| 72 65 6e 2c 20 77 69 6e | 64 6f 77 49 44 3e 2d 2d |ren, win|dowID>--|
|00002ae0| 20 52 65 74 75 72 6e 73 | 20 54 52 55 45 20 69 66 | Returns| TRUE if|
|00002af0| 20 74 68 65 20 77 69 6e | 64 6f 77 20 68 61 73 20 | the win|dow has |
|00002b00| 63 68 69 6c 64 20 77 69 | 6e 64 6f 77 73 2c 20 66 |child wi|ndows, f|
|00002b10| 61 6c 73 65 20 69 66 20 | 6e 6f 74 2e 18 53 49 20 |alse if |not..SI |
|00002b20| 6d 57 69 6e 64 6f 77 54 | 79 70 65 2c 20 77 69 6e |mWindowT|ype, win|
|00002b30| 64 6f 77 49 44 55 2d 2d | 20 52 65 74 75 72 6e 73 |dowIDU--| Returns|
|00002b40| 20 74 68 65 20 74 79 70 | 65 20 6f 66 20 77 69 6e | the typ|e of win|
|00002b50| 64 6f 77 2e 20 4f 6e 20 | 74 68 65 20 4d 61 63 2c |dow. On |the Mac,|
|00002b60| 20 74 68 69 73 20 69 73 | 20 61 6c 77 61 79 73 20 | this is| always |
|00002b70| 61 6e 20 69 6e 74 65 67 | 65 72 2c 20 62 75 74 20 |an integ|er, but |
|00002b80| 74 68 69 73 20 6d 65 74 | 68 6f 64 51 2d 2d 20 72 |this met|hodQ-- r|
|00002b90| 65 74 75 72 6e 73 20 61 | 20 73 74 72 69 6e 67 20 |eturns a| string |
|00002ba0| 6f 66 20 74 68 65 20 69 | 6e 74 65 67 65 72 2c 20 |of the i|nteger, |
|00002bb0| 66 6f 72 20 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |for comp|atibilit|
|00002bc0| 79 20 77 69 74 68 20 74 | 68 65 20 57 69 6e 20 76 |y with t|he Win v|
|00002bd0| 65 72 73 69 6f 6e 20 28 | 77 68 65 72 65 54 2d 2d |ersion (|whereT--|
|00002be0| 20 77 69 6e 64 6f 77 54 | 79 70 65 73 20 63 61 6e | windowT|ypes can|
|00002bf0| 20 62 65 20 73 74 72 69 | 6e 67 73 29 2e 20 52 65 | be stri|ngs). Re|
|00002c00| 74 75 72 6e 73 20 45 4d | 50 54 59 20 69 66 20 74 |turns EM|PTY if t|
|00002c10| 68 65 20 73 75 70 70 6c | 69 65 64 20 77 69 6e 64 |he suppl|ied wind|
|00002c20| 6f 77 49 44 20 69 73 20 | 6e 6f 74 20 76 61 6c 69 |owID is |not vali|
|00002c30| 64 2e 1b 53 49 20 6d 47 | 65 74 57 69 6e 64 6f 77 |d..SI mG|etWindow|
|00002c40| 54 79 70 65 2c 20 77 69 | 6e 64 6f 77 49 44 44 2d |Type, wi|ndowIDD-|
|00002c50| 2d 20 53 79 6e 6f 6e 79 | 6d 20 66 6f 72 20 6d 57 |- Synony|m for mW|
|00002c60| 69 6e 64 6f 77 54 79 70 | 65 2c 20 66 6f 72 20 63 |indowTyp|e, for c|
|00002c70| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 77 69 74 |ompatibi|lity wit|
|00002c80| 68 20 65 61 72 6c 69 65 | 72 20 72 65 6c 65 61 73 |h earlie|r releas|
|00002c90| 65 73 2e 1d 49 49 20 6d | 57 69 6e 64 6f 77 49 73 |es..II m|WindowIs|
|00002ca0| 56 69 73 69 62 6c 65 2c | 20 77 69 6e 64 6f 77 49 |Visible,| windowI|
|00002cb0| 44 4c 2d 2d 20 52 65 74 | 75 72 6e 73 20 54 52 55 |DL-- Ret|urns TRU|
|00002cc0| 45 20 69 66 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |E if the| window |
|00002cd0| 69 73 20 64 69 73 70 6c | 61 79 65 64 20 28 62 75 |is displ|ayed (bu|
|00002ce0| 74 20 70 6f 73 73 69 62 | 6c 79 20 6f 62 73 63 75 |t possib|ly obscu|
|00002cf0| 72 65 64 29 2c 20 6f 72 | 20 46 41 4c 53 45 12 2d |red), or| FALSE.-|
|00002d00| 2d 20 69 66 20 69 74 27 | 73 20 68 69 64 64 65 6e |- if it'|s hidden|
|00002d10| 2e 12 49 20 6d 47 65 74 | 41 63 74 69 76 65 57 69 |..I mGet|ActiveWi|
|00002d20| 6e 64 6f 77 54 2d 2d 20 | 52 65 74 75 72 6e 73 20 |ndowT-- |Returns |
|00002d30| 77 69 6e 64 6f 77 49 44 | 20 6f 66 20 74 68 65 20 |windowID| of the |
|00002d40| 66 72 6f 6e 74 6d 6f 73 | 74 20 77 69 6e 64 6f 77 |frontmos|t window|
|00002d50| 20 28 30 20 69 66 20 6e | 6f 20 77 69 6e 64 6f 77 | (0 if n|o window|
|00002d60| 73 20 61 72 65 20 76 69 | 73 69 62 6c 65 20 6f 72 |s are vi|sible or|
|00002d70| 20 61 63 74 69 76 65 29 | 2e 49 2d 2d 20 4e 6f 74 | active)|.I-- Not|
|00002d80| 65 3a 20 74 68 69 73 20 | 6f 6e 6c 79 20 61 70 70 |e: this |only app|
|00002d90| 6c 69 65 73 20 74 6f 20 | 77 69 6e 64 6f 77 73 20 |lies to |windows |
|00002da0| 6f 77 6e 65 64 20 62 79 | 20 74 68 65 20 44 69 72 |owned by| the Dir|
|00002db0| 65 63 74 6f 72 20 74 61 | 73 6b 2e 20 55 73 75 61 |ector ta|sk. Usua|
|00002dc0| 6c 6c 79 50 2d 2d 20 72 | 65 74 75 72 6e 73 20 74 |llyP-- r|eturns t|
|00002dd0| 68 65 20 73 61 6d 65 20 | 77 69 6e 64 6f 77 20 61 |he same |window a|
|00002de0| 73 20 6d 44 69 72 65 63 | 74 6f 72 53 74 61 67 65 |s mDirec|torStage|
|00002df0| 57 69 6e 64 6f 77 20 69 | 6e 20 70 72 6f 6a 65 63 |Window i|n projec|
|00002e00| 74 6f 72 73 2c 20 62 75 | 74 20 63 6f 75 6c 64 20 |tors, bu|t could |
|00002e10| 61 6c 73 6f 4b 2d 2d 20 | 72 65 74 75 72 6e 20 61 |alsoK-- |return a|
|00002e20| 75 74 68 6f 72 69 6e 67 | 2d 74 69 6d 65 20 77 69 |uthoring|-time wi|
|00002e30| 6e 64 6f 77 73 2c 20 4d | 49 41 57 73 2c 20 6f 72 |ndows, M|IAWs, or|
|00002e40| 20 58 74 72 61 2d 20 6f | 72 20 58 4f 62 6a 65 63 | Xtra- o|r XObjec|
|00002e50| 74 2d 6f 77 6e 65 64 20 | 77 69 6e 64 6f 77 73 2e |t-owned |windows.|
|00002e60| 1d 49 49 20 6d 53 65 74 | 41 63 74 69 76 65 57 69 |.II mSet|ActiveWi|
|00002e70| 6e 64 6f 77 2c 20 77 69 | 6e 64 6f 77 49 44 51 2d |ndow, wi|ndowIDQ-|
|00002e80| 2d 20 53 65 74 73 20 74 | 68 65 20 77 69 6e 64 6f |- Sets t|he windo|
|00002e90| 77 20 74 6f 20 62 65 20 | 74 68 65 20 66 72 6f 6e |w to be |the fron|
|00002ea0| 74 6d 6f 73 74 2c 20 61 | 63 74 69 76 65 20 77 69 |tmost, a|ctive wi|
|00002eb0| 6e 64 6f 77 20 28 6d 61 | 6b 69 6e 67 20 69 74 20 |ndow (ma|king it |
|00002ec0| 76 69 73 69 62 6c 65 2c | 20 69 66 20 69 74 27 73 |visible,| if it's|
|00002ed0| 56 2d 2d 20 68 69 64 64 | 65 6e 29 2e 20 52 65 74 |V-- hidd|en). Ret|
|00002ee0| 75 72 6e 73 20 74 68 65 | 20 70 72 65 76 69 6f 75 |urns the| previou|
|00002ef0| 73 6c 79 20 61 63 74 69 | 76 65 20 77 69 6e 64 6f |sly acti|ve windo|
|00002f00| 77 2e 20 4e 6f 74 65 20 | 31 3a 20 44 69 72 65 63 |w. Note |1: Direc|
|00002f10| 74 6f 72 20 6e 6f 72 6d | 61 6c 6c 79 20 65 78 70 |tor norm|ally exp|
|00002f20| 65 63 74 73 20 74 6f 49 | 2d 2d 20 61 63 74 69 76 |ects toI|-- activ|
|00002f30| 61 74 65 20 69 74 73 20 | 6f 77 6e 20 77 69 6e 64 |ate its |own wind|
|00002f40| 6f 77 73 2c 20 61 6e 64 | 20 69 74 73 20 6e 6f 74 |ows, and| its not|
|00002f50| 69 6f 6e 20 6f 66 20 77 | 68 69 63 68 20 77 69 6e |ion of w|hich win|
|00002f60| 64 6f 77 20 69 73 20 61 | 63 74 69 76 65 20 6f 72 |dow is a|ctive or|
|00002f70| 20 4e 2d 2d 20 66 72 6f | 6e 74 6d 6f 73 74 20 6d | N-- fro|ntmost m|
|00002f80| 61 79 20 67 65 74 20 27 | 6f 75 74 20 6f 66 20 73 |ay get '|out of s|
|00002f90| 79 6e 63 27 20 77 68 65 | 6e 20 75 73 69 6e 67 20 |ync' whe|n using |
|00002fa0| 74 68 69 73 20 63 6f 6d | 6d 61 6e 64 2e 20 53 65 |this com|mand. Se|
|00002fb0| 6e 64 69 6e 67 20 66 61 | 6b 65 20 6d 6f 75 73 65 |nding fa|ke mouse|
|00002fc0| 51 2d 2d 20 63 6c 69 63 | 6b 73 20 69 6e 73 74 65 |Q-- clic|ks inste|
|00002fd0| 61 64 20 6d 61 79 20 61 | 76 6f 69 64 20 74 68 69 |ad may a|void thi|
|00002fe0| 73 2e 20 4e 6f 74 65 20 | 32 3a 20 74 68 69 73 20 |s. Note |2: this |
|00002ff0| 6d 65 74 68 6f 64 20 6f | 6e 6c 79 20 61 70 70 6c |method o|nly appl|
|00003000| 69 65 73 20 74 6f 20 74 | 68 65 20 63 75 72 72 65 |ies to t|he curre|
|00003010| 6e 74 57 2d 2d 20 44 69 | 72 65 63 74 6f 72 20 74 |ntW-- Di|rector t|
|00003020| 61 73 6b 2d 2d 20 75 73 | 65 20 6d 57 69 6e 64 6f |ask-- us|e mWindo|
|00003030| 77 54 6f 46 72 6f 6e 74 | 20 77 69 74 68 20 6f 74 |wToFront| with ot|
|00003040| 68 65 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |her appl|ications|
|00003050| 2e 20 4e 6f 74 65 20 33 | 3a 20 74 68 69 73 20 6d |. Note 3|: this m|
|00003060| 65 74 68 6f 64 20 77 69 | 6c 6c 4b 2d 2d 20 61 75 |ethod wi|llK-- au|
|00003070| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 62 72 69 6e |tomatica|lly brin|
|00003080| 67 20 74 68 65 20 44 69 | 72 65 63 74 6f 72 20 74 |g the Di|rector t|
|00003090| 61 73 6b 20 74 6f 20 74 | 68 65 20 66 72 6f 6e 74 |ask to t|he front|
|000030a0| 2c 20 69 66 20 69 74 27 | 73 20 6e 6f 74 20 61 6c |, if it'|s not al|
|000030b0| 72 65 61 64 79 2e 19 49 | 20 6d 47 65 74 4b 65 79 |ready..I| mGetKey|
|000030c0| 62 6f 61 72 64 49 6e 70 | 75 74 57 69 6e 64 6f 77 |boardInp|utWindow|
|000030d0| 51 2d 2d 20 4f 6e 20 57 | 69 6e 64 6f 77 73 2c 20 |Q-- On W|indows, |
|000030e0| 74 68 69 73 20 69 73 20 | 61 20 64 69 73 74 69 6e |this is |a distin|
|000030f0| 63 74 20 73 79 73 74 65 | 6d 20 63 61 6c 6c 2e 20 |ct syste|m call. |
|00003100| 4f 6e 20 74 68 65 20 4d | 61 63 2c 20 74 68 65 72 |On the M|ac, ther|
|00003110| 65 20 69 73 20 6e 6f 20 | 73 75 63 68 20 63 61 6c |e is no |such cal|
|00003120| 6c 2c 44 2d 2d 20 73 6f | 20 74 68 69 73 20 6d 65 |l,D-- so| this me|
|00003130| 74 68 6f 64 20 69 73 20 | 6a 75 73 74 20 61 20 73 |thod is |just a s|
|00003140| 79 6e 6f 6e 79 6d 20 66 | 6f 72 20 6d 47 65 74 41 |ynonym f|or mGetA|
|00003150| 63 74 69 76 65 57 69 6e | 64 6f 77 20 6f 6e 20 74 |ctiveWin|dow on t|
|00003160| 68 65 20 4d 61 63 2e 24 | 49 49 20 6d 53 65 74 4b |he Mac.$|II mSetK|
|00003170| 65 79 62 6f 61 72 64 49 | 6e 70 75 74 57 69 6e 64 |eyboardI|nputWind|
|00003180| 6f 77 2c 20 77 69 6e 64 | 6f 77 49 44 54 2d 2d 20 |ow, wind|owIDT-- |
|00003190| 4f 6e 20 57 69 6e 64 6f | 77 73 2c 20 74 68 69 73 |On Windo|ws, this|
|000031a0| 20 69 73 20 61 20 64 69 | 73 74 69 6e 63 74 20 73 | is a di|stinct s|
|000031b0| 79 73 74 65 6d 20 63 61 | 6c 6c 2c 20 77 69 74 68 |ystem ca|ll, with|
|000031c0| 20 6e 6f 20 4d 61 63 20 | 65 71 75 69 76 61 6c 65 | no Mac |equivale|
|000031d0| 6e 74 3b 20 74 68 65 72 | 65 66 6f 72 65 2c 20 6f |nt; ther|efore, o|
|000031e0| 6e 40 2d 2d 20 74 68 65 | 20 4d 61 63 2c 20 74 68 |n@-- the| Mac, th|
|000031f0| 69 73 20 6d 65 74 68 6f | 64 20 69 73 20 6a 75 73 |is metho|d is jus|
|00003200| 74 20 61 20 73 79 6e 6f | 6e 79 6d 6e 20 66 6f 72 |t a syno|nymn for|
|00003210| 20 6d 53 65 74 41 63 74 | 69 76 65 57 69 6e 64 6f | mSetAct|iveWindo|
|00003220| 77 2e 1f 49 49 20 6d 43 | 61 70 74 75 72 65 4d 6f |w..II mC|aptureMo|
|00003230| 75 73 65 49 6e 70 75 74 | 2c 20 77 69 6e 64 6f 77 |useInput|, window|
|00003240| 49 44 51 2d 2d 20 4f 6e | 20 57 69 6e 64 6f 77 73 |IDQ-- On| Windows|
|00003250| 2c 20 74 68 69 73 20 69 | 73 20 61 20 64 69 73 74 |, this i|s a dist|
|00003260| 69 6e 63 74 20 73 79 73 | 74 65 6d 20 63 61 6c 6c |inct sys|tem call|
|00003270| 2e 20 4f 6e 20 74 68 65 | 20 4d 61 63 2c 20 74 68 |. On the| Mac, th|
|00003280| 65 72 65 20 69 73 20 6e | 6f 20 73 75 63 68 20 63 |ere is n|o such c|
|00003290| 61 6c 6c 2c 44 2d 2d 20 | 73 6f 20 74 68 69 73 20 |all,D-- |so this |
|000032a0| 6d 65 74 68 6f 64 20 69 | 73 20 6a 75 73 74 20 61 |method i|s just a|
|000032b0| 20 73 79 6e 6f 6e 79 6d | 20 66 6f 72 20 6d 53 65 | synonym| for mSe|
|000032c0| 74 41 63 74 69 76 65 57 | 69 6e 64 6f 77 20 6f 6e |tActiveW|indow on|
|000032d0| 20 74 68 65 20 4d 61 63 | 2e 14 58 20 6d 52 65 6c | the Mac|..X mRel|
|000032e0| 65 61 73 65 4d 6f 75 73 | 65 49 6e 70 75 74 54 2d |easeMous|eInputT-|
|000032f0| 2d 20 4f 6e 20 74 68 65 | 20 4d 61 63 2c 20 74 68 |- On the| Mac, th|
|00003300| 69 73 20 6d 65 74 68 6f | 64 20 64 6f 65 73 20 6e |is metho|d does n|
|00003310| 6f 74 68 69 6e 67 2c 20 | 62 65 63 61 75 73 65 20 |othing, |because |
|00003320| 74 68 65 72 65 27 73 20 | 6e 6f 20 4d 61 63 20 65 |there's |no Mac e|
|00003330| 71 75 69 76 61 6c 65 6e | 74 20 66 6f 72 20 74 68 |quivalen|t for th|
|00003340| 69 73 2e 17 2d 2d 20 57 | 69 6e 64 6f 77 73 20 73 |is..-- W|indows s|
|00003350| 79 73 74 65 6d 20 63 61 | 6c 6c 2e 25 49 49 20 6d |ystem ca|ll.%II m|
|00003360| 47 65 74 50 61 72 65 6e | 74 57 69 6e 64 6f 77 54 |GetParen|tWindowT|
|00003370| 6f 70 43 68 69 6c 64 2c | 20 77 69 6e 64 6f 77 49 |opChild,| windowI|
|00003380| 44 51 2d 2d 20 57 69 6e | 64 6f 77 73 20 61 72 63 |DQ-- Win|dows arc|
|00003390| 68 69 74 65 63 74 75 72 | 65 20 64 69 66 66 65 72 |hitectur|e differ|
|000033a0| 73 20 66 72 6f 6d 20 4d | 61 63 20 61 72 63 68 69 |s from M|ac archi|
|000033b0| 74 65 63 74 75 72 65 2e | 20 4f 6e 20 57 69 6e 64 |tecture.| On Wind|
|000033c0| 6f 77 73 2c 20 65 61 63 | 68 20 61 70 70 20 68 61 |ows, eac|h app ha|
|000033d0| 73 20 61 55 2d 2d 20 70 | 61 72 65 6e 74 20 77 69 |s aU-- p|arent wi|
|000033e0| 6e 64 6f 77 20 77 68 69 | 63 68 20 6d 61 79 20 63 |ndow whi|ch may c|
|000033f0| 6f 6e 74 61 69 6e 20 6f | 74 68 65 72 20 77 69 6e |ontain o|ther win|
|00003400| 64 6f 77 73 20 28 65 6e | 74 69 72 65 6c 79 20 77 |dows (en|tirely w|
|00003410| 69 74 68 69 6e 20 74 68 | 65 20 70 61 72 65 6e 74 |ithin th|e parent|
|00003420| 29 2e 20 4f 6e 20 74 68 | 65 53 2d 2d 20 4d 61 63 |). On th|eS-- Mac|
|00003430| 2c 20 70 61 72 65 6e 74 | 20 77 69 6e 64 6f 77 73 |, parent| windows|
|00003440| 20 6d 61 79 20 61 70 70 | 65 61 72 20 61 6e 79 77 | may app|ear anyw|
|00003450| 68 65 72 65 20 6f 6e 20 | 74 68 65 20 64 65 73 6b |here on |the desk|
|00003460| 74 6f 70 2c 20 61 6e 64 | 20 64 6f 6e 27 74 20 6f |top, and| don't o|
|00003470| 77 6e 20 73 75 62 77 69 | 6e 64 6f 77 73 53 2d 2d |wn subwi|ndowsS--|
|00003480| 20 70 65 72 20 73 65 2d | 2d 20 70 65 72 68 61 70 | per se-|- perhap|
|00003490| 73 20 73 6f 6d 65 20 63 | 6f 6e 74 72 6f 6c 73 20 |s some c|ontrols |
|000034a0| 77 69 74 68 69 6e 20 74 | 68 65 20 77 69 6e 64 6f |within t|he windo|
|000034b0| 77 2c 20 62 75 74 20 74 | 68 65 73 65 20 63 6f 6e |w, but t|hese con|
|000034c0| 74 72 6f 6c 73 20 64 6f | 20 6e 6f 74 20 68 61 76 |trols do| not hav|
|000034d0| 65 50 2d 2d 20 61 6e 79 | 20 66 72 6f 6e 74 2d 74 |eP-- any| front-t|
|000034e0| 6f 2d 62 61 63 6b 20 6c | 61 79 65 72 69 6e 67 2e |o-back l|ayering.|
|000034f0| 20 4f 6e 20 74 68 65 20 | 4d 61 63 2c 20 74 68 65 | On the |Mac, the|
|00003500| 72 65 66 6f 72 65 2c 20 | 74 68 69 73 20 6d 65 74 |refore, |this met|
|00003510| 68 6f 64 20 73 69 6d 70 | 6c 79 20 72 65 74 75 72 |hod simp|ly retur|
|00003520| 6e 73 47 2d 2d 20 74 68 | 65 20 66 69 72 73 74 20 |nsG-- th|e first |
|00003530| 63 6f 6e 74 72 6f 6c 20 | 6f 77 6e 65 64 20 62 79 |control |owned by|
|00003540| 20 61 20 77 69 6e 64 6f | 77 20 28 6f 72 20 30 20 | a windo|w (or 0 |
|00003550| 69 66 20 74 68 65 72 65 | 20 61 72 65 20 6e 6f 20 |if there| are no |
|00003560| 63 6f 6e 74 72 6f 6c 73 | 29 2e 13 49 20 6d 47 65 |controls|)..I mGe|
|00003570| 74 44 65 73 6b 74 6f 70 | 57 69 6e 64 6f 77 4f 2d |tDesktop|WindowO-|
|00003580| 2d 20 52 65 74 75 72 6e | 73 20 74 68 65 20 77 69 |- Return|s the wi|
|00003590| 6e 64 6f 77 49 44 20 6f | 66 20 74 68 65 20 4d 61 |ndowID o|f the Ma|
|000035a0| 63 20 64 65 73 6b 74 6f | 70 20 69 74 73 65 6c 66 |c deskto|p itself|
|000035b0| 20 28 77 68 69 63 68 20 | 69 6e 63 6c 75 64 65 73 | (which |includes|
|000035c0| 20 61 6c 6c 20 73 63 72 | 65 65 6e 73 29 2e 4e 2d | all scr|eens).N-|
|000035d0| 2d 20 44 69 72 65 63 74 | 6f 72 20 35 20 75 73 65 |- Direct|or 5 use|
|000035e0| 72 73 20 6d 61 79 20 70 | 72 65 66 65 72 20 74 6f |rs may p|refer to|
|000035f0| 20 75 73 65 20 74 68 65 | 20 62 75 69 6c 74 2d 69 | use the| built-i|
|00003600| 6e 20 4c 69 6e 67 6f 20 | 27 64 65 73 6b 74 6f 70 |n Lingo |'desktop|
|00003610| 52 65 63 74 4c 69 73 74 | 27 20 66 6f 72 53 2d 2d |RectList|' forS--|
|00003620| 20 74 68 69 73 2e 20 54 | 68 69 73 20 77 69 6e 64 | this. T|his wind|
|00003630| 6f 77 27 73 20 64 69 6d | 65 6e 73 69 6f 6e 73 20 |ow's dim|ensions |
|00003640| 61 72 65 20 66 61 62 72 | 69 63 61 74 65 64 20 62 |are fabr|icated b|
|00003650| 79 20 4d 61 63 20 4d 61 | 73 74 65 72 41 70 70 2c |y Mac Ma|sterApp,|
|00003660| 20 69 6e 20 6f 72 64 65 | 72 20 74 6f 20 6b 65 65 | in orde|r to kee|
|00003670| 70 56 2d 2d 20 63 6f 6d | 70 61 74 69 62 69 6c 69 |pV-- com|patibili|
|00003680| 74 79 20 77 69 74 68 20 | 74 68 65 20 57 69 6e 64 |ty with |the Wind|
|00003690| 6f 77 73 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 4d |ows vers|ion of M|
|000036a0| 61 73 74 65 72 41 70 70 | 2e 20 49 6e 20 74 68 65 |asterApp|. In the|
|000036b0| 20 74 72 75 65 20 4d 61 | 63 4f 53 20 77 69 6e 64 | true Ma|cOS wind|
|000036c0| 6f 77 20 6c 69 73 74 2c | 2c 2d 2d 20 74 68 69 73 |ow list,|,-- this|
|000036d0| 20 77 69 6e 64 6f 77 20 | 69 73 20 7a 65 72 6f 20 | window |is zero |
|000036e0| 70 69 78 65 6c 73 20 74 | 61 6c 6c 20 61 6e 64 20 |pixels t|all and |
|000036f0| 77 69 64 65 2e 22 53 49 | 20 6d 47 65 74 57 69 6e |wide."SI| mGetWin|
|00003700| 64 6f 77 4f 75 74 73 69 | 64 65 52 65 63 74 2c 20 |dowOutsi|deRect, |
|00003710| 77 69 6e 64 6f 77 49 44 | 4c 2d 2d 20 52 65 74 75 |windowID|L-- Retu|
|00003720| 72 6e 73 20 61 20 77 69 | 6e 64 6f 77 27 73 20 64 |rns a wi|ndow's d|
|00003730| 69 6d 65 6e 73 69 6f 6e | 73 2c 20 72 65 6c 61 74 |imension|s, relat|
|00003740| 69 76 65 20 74 6f 20 74 | 68 65 20 6d 61 69 6e 20 |ive to t|he main |
|00003750| 73 63 72 65 65 6e 2c 20 | 69 6e 63 6c 75 64 69 6e |screen, |includin|
|00003760| 67 20 61 6e 79 4d 2d 2d | 20 74 69 74 6c 65 20 62 |g anyM--| title b|
|00003770| 61 72 20 61 72 65 61 2c | 20 61 73 20 61 20 66 6f |ar area,| as a fo|
|00003780| 75 72 2d 77 6f 72 64 20 | 73 74 72 69 6e 67 20 6f |ur-word |string o|
|00003790| 66 20 69 6e 74 65 67 65 | 72 73 20 69 6e 20 74 68 |f intege|rs in th|
|000037a0| 65 20 6f 72 64 65 72 3a | 20 6c 65 66 74 2c 20 74 |e order:| left, t|
|000037b0| 6f 70 2c 4c 2d 2d 20 72 | 69 67 68 74 2c 20 62 6f |op,L-- r|ight, bo|
|000037c0| 74 74 6f 6d 2e 20 52 65 | 74 75 72 6e 73 20 27 45 |ttom. Re|turns 'E|
|000037d0| 72 72 6f 72 3a 27 20 61 | 73 20 77 6f 72 64 20 31 |rror:' a|s word 1|
|000037e0| 20 69 66 20 74 68 65 72 | 65 27 73 20 61 20 70 72 | if ther|e's a pr|
|000037f0| 6f 62 6c 65 6d 2e 20 4e | 6f 74 65 20 74 68 61 74 |oblem. N|ote that|
|00003800| 4b 2d 2d 20 73 6f 6d 65 | 20 61 70 70 73 20 28 44 |K-- some| apps (D|
|00003810| 69 72 65 63 74 6f 72 20 | 69 74 73 65 6c 66 20 69 |irector |itself i|
|00003820| 6e 63 6c 75 64 65 64 29 | 2c 20 65 78 70 65 63 74 |ncluded)|, expect|
|00003830| 69 6e 67 20 74 6f 20 6d | 61 69 6e 74 61 69 6e 20 |ing to m|aintain |
|00003840| 63 68 69 6c 64 20 77 69 | 6e 64 6f 77 4b 2d 2d 20 |child wi|ndowK-- |
|00003850| 64 69 6d 65 6e 73 69 6f | 6e 73 20 70 72 69 76 61 |dimensio|ns priva|
|00003860| 74 65 6c 79 2c 20 6d 61 | 79 20 72 65 74 75 72 6e |tely, ma|y return|
|00003870| 20 76 61 6c 75 65 73 20 | 74 68 61 74 20 61 72 65 | values |that are|
|00003880| 20 6f 66 66 73 65 74 20 | 66 72 6f 6d 20 74 72 75 | offset |from tru|
|00003890| 65 20 73 63 72 65 65 6e | 50 2d 2d 20 63 6f 6f 72 |e screen|P-- coor|
|000038a0| 64 69 6e 61 74 65 73 3b | 20 74 65 73 74 69 6e 67 |dinates;| testing|
|000038b0| 20 69 73 20 72 65 71 75 | 69 72 65 64 20 66 6f 72 | is requ|ired for|
|000038c0| 20 65 61 63 68 20 61 70 | 70 20 77 69 74 68 20 77 | each ap|p with w|
|000038d0| 68 69 63 68 20 79 6f 75 | 20 75 73 65 20 74 68 69 |hich you| use thi|
|000038e0| 73 20 6d 65 74 68 6f 64 | 2e 21 53 49 20 6d 47 65 |s method|.!SI mGe|
|000038f0| 74 57 69 6e 64 6f 77 49 | 6e 73 69 64 65 52 65 63 |tWindowI|nsideRec|
|00003900| 74 2c 20 77 69 6e 64 6f | 77 49 44 4c 2d 2d 20 52 |t, windo|wIDL-- R|
|00003910| 65 74 75 72 6e 73 20 61 | 20 77 69 6e 64 6f 77 27 |eturns a| window'|
|00003920| 73 20 64 69 6d 65 6e 73 | 69 6f 6e 73 2c 20 72 65 |s dimens|ions, re|
|00003930| 6c 61 74 69 76 65 20 74 | 6f 20 74 68 65 20 6d 61 |lative t|o the ma|
|00003940| 69 6e 20 73 63 72 65 65 | 6e 2c 20 6e 6f 74 20 69 |in scree|n, not i|
|00003950| 6e 63 6c 75 64 69 6e 67 | 4c 2d 2d 20 61 6e 79 20 |ncluding|L-- any |
|00003960| 74 69 74 6c 65 20 62 61 | 72 20 61 72 65 61 2c 20 |title ba|r area, |
|00003970| 69 6e 20 74 68 65 20 73 | 61 6d 65 20 66 6f 72 6d |in the s|ame form|
|00003980| 61 74 20 75 73 65 64 20 | 62 79 20 6d 47 65 74 57 |at used |by mGetW|
|00003990| 69 6e 64 6f 77 4f 75 74 | 73 69 64 65 52 65 63 74 |indowOut|sideRect|
|000039a0| 2e 20 54 68 65 3a 2d 2d | 20 73 61 6d 65 20 70 72 |. The:--| same pr|
|000039b0| 65 63 61 75 74 69 6f 6e | 73 20 64 6f 63 75 6d 65 |ecaution|s docume|
|000039c0| 6e 74 65 64 20 74 68 65 | 72 65 20 61 70 70 6c 79 |nted the|re apply|
|000039d0| 20 74 6f 20 74 68 69 73 | 20 6d 65 74 68 6f 64 2e | to this| method.|
|000039e0| 40 49 49 49 49 49 49 20 | 6d 53 65 74 57 69 6e 64 |@IIIIII |mSetWind|
|000039f0| 6f 77 4f 75 74 73 69 64 | 65 52 65 63 74 2c 20 77 |owOutsid|eRect, w|
|00003a00| 69 6e 64 6f 77 49 44 2c | 20 6c 65 66 74 2c 20 74 |indowID,| left, t|
|00003a10| 6f 70 2c 20 72 69 67 68 | 74 2c 20 62 6f 74 74 6f |op, righ|t, botto|
|00003a20| 6d 45 2d 2d 20 53 65 74 | 73 20 6f 75 74 73 69 64 |mE-- Set|s outsid|
|00003a30| 65 20 77 69 6e 64 6f 77 | 20 72 65 63 74 61 6e 67 |e window| rectang|
|00003a40| 6c 65 20 64 69 6d 65 6e | 73 69 6f 6e 73 2e 20 59 |le dimen|sions. Y|
|00003a50| 6f 75 20 63 61 6e 20 6d | 6f 76 65 20 6f 72 20 72 |ou can m|ove or r|
|00003a60| 65 73 69 7a 65 20 61 47 | 2d 2d 20 77 69 6e 64 6f |esize aG|-- windo|
|00003a70| 77 20 62 61 73 65 64 20 | 6f 6e 20 74 68 65 20 64 |w based |on the d|
|00003a80| 69 6d 65 6e 73 69 6f 6e | 73 20 79 6f 75 20 70 72 |imension|s you pr|
|00003a90| 6f 76 69 64 65 2e 20 52 | 65 74 75 72 6e 73 20 30 |ovide. R|eturns 0|
|00003aa0| 20 69 66 20 73 75 63 63 | 65 73 73 66 75 6c 2c 49 | if succ|essful,I|
|00003ab0| 2d 2d 20 31 20 69 66 20 | 74 68 65 20 73 75 70 70 |-- 1 if |the supp|
|00003ac0| 6c 69 65 64 20 64 69 6d | 65 6e 73 69 6f 6e 73 20 |lied dim|ensions |
|00003ad0| 61 72 65 20 69 6e 76 61 | 6c 69 64 2c 20 32 20 69 |are inva|lid, 2 i|
|00003ae0| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 27 73 20 6e |f the wi|ndow's n|
|00003af0| 6f 74 20 76 61 6c 69 64 | 2e 4c 2d 2d 20 4e 6f 74 |ot valid|.L-- Not|
|00003b00| 65 20 74 68 61 74 20 74 | 68 69 73 20 6d 65 74 68 |e that t|his meth|
|00003b10| 6f 64 20 62 65 68 61 76 | 65 73 20 64 69 66 66 65 |od behav|es diffe|
|00003b20| 72 65 6e 74 6c 79 20 6f | 6e 20 4d 61 63 20 61 6e |rently o|n Mac an|
|00003b30| 64 20 57 69 6e 64 6f 77 | 73 2e 20 53 63 72 6f 6c |d Window|s. Scrol|
|00003b40| 6c 20 62 61 72 73 49 2d | 2d 20 61 6e 64 20 6f 74 |l barsI-|- and ot|
|00003b50| 68 65 72 20 77 69 6e 64 | 6f 77 20 63 6f 6e 74 65 |her wind|ow conte|
|00003b60| 6e 74 20 63 61 6e 20 62 | 65 63 6f 6d 65 20 68 69 |nt can b|ecome hi|
|00003b70| 64 64 65 6e 20 61 73 20 | 61 20 72 65 73 75 6c 74 |dden as |a result|
|00003b80| 20 6f 6e 20 74 68 65 20 | 4d 61 63 2c 20 62 75 74 | on the |Mac, but|
|00003b90| 48 2d 2d 20 6f 6e 20 57 | 69 6e 64 6f 77 73 2c 20 |H-- on W|indows, |
|00003ba0| 74 68 65 20 65 6e 74 69 | 72 65 20 77 69 6e 64 6f |the enti|re windo|
|00003bb0| 77 20 61 6e 64 20 69 74 | 73 20 63 6f 6e 74 72 6f |w and it|s contro|
|00003bc0| 6c 73 20 61 72 65 20 72 | 65 64 72 61 77 6e 20 74 |ls are r|edrawn t|
|00003bd0| 6f 20 74 68 65 20 6e 65 | 77 4c 2d 2d 20 73 69 7a |o the ne|wL-- siz|
|00003be0| 65 2e 20 4f 6e 20 74 68 | 65 20 4d 61 63 2c 20 69 |e. On th|e Mac, i|
|00003bf0| 74 27 73 20 62 65 73 74 | 20 74 6f 20 63 68 61 6e |t's best| to chan|
|00003c00| 67 65 20 6f 6e 6c 79 20 | 74 68 65 20 70 6f 73 69 |ge only |the posi|
|00003c10| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 72 65 63 74 |tion of |the rect|
|00003c20| 61 6e 67 6c 65 2c 4d 2d | 2d 20 6e 6f 74 20 69 74 |angle,M-|- not it|
|00003c30| 73 20 68 65 69 67 68 74 | 20 61 6e 64 20 77 69 64 |s height| and wid|
|00003c40| 74 68 2e 20 59 6f 75 20 | 6d 61 79 20 62 65 20 61 |th. You |may be a|
|00003c50| 62 6c 65 20 74 6f 20 75 | 73 65 20 74 68 65 20 6d |ble to u|se the m|
|00003c60| 46 61 6b 65 4d 6f 75 73 | 65 44 72 61 67 20 6d 65 |FakeMous|eDrag me|
|00003c70| 74 68 6f 64 4a 2d 2d 20 | 62 65 6c 6f 77 20 74 6f |thodJ-- |below to|
|00003c80| 20 73 69 6d 75 6c 61 74 | 65 20 61 20 64 72 61 67 | simulat|e a drag|
|00003c90| 20 6f 6e 20 74 68 65 20 | 72 65 73 69 7a 69 6e 67 | on the |resizing|
|00003ca0| 20 62 6f 78 20 6f 6e 20 | 74 68 65 20 4d 61 63 2c | box on |the Mac,|
|00003cb0| 20 74 6f 20 61 63 68 65 | 69 76 65 20 74 68 65 2e | to ache|ive the.|
|00003cc0| 2d 2d 20 65 66 66 65 63 | 74 20 6f 66 20 6d 53 65 |-- effec|t of mSe|
|00003cd0| 74 57 69 6e 64 6f 77 4f | 75 74 73 69 64 65 52 65 |tWindowO|utsideRe|
|00003ce0| 63 74 20 6f 6e 20 57 69 | 6e 64 6f 77 73 2e 39 49 |ct on Wi|ndows.9I|
|00003cf0| 49 49 49 49 49 20 6d 53 | 65 74 57 69 6e 64 6f 77 |IIIII mS|etWindow|
|00003d00| 52 65 63 74 2c 20 77 69 | 6e 64 6f 77 49 44 2c 20 |Rect, wi|ndowID, |
|00003d10| 6c 65 66 74 2c 20 74 6f | 70 2c 20 72 69 67 68 74 |left, to|p, right|
|00003d20| 2c 20 62 6f 74 74 6f 6d | 4d 2d 2d 20 53 79 6e 6f |, bottom|M-- Syno|
|00003d30| 6e 79 6d 20 66 6f 72 20 | 6d 53 65 74 57 69 6e 64 |nym for |mSetWind|
|00003d40| 6f 77 4f 75 74 73 69 64 | 65 52 65 63 74 2c 20 66 |owOutsid|eRect, f|
|00003d50| 6f 72 20 63 6f 6d 70 61 | 74 69 62 69 69 74 79 20 |or compa|tibiity |
|00003d60| 77 69 74 68 20 65 61 72 | 6c 69 65 72 20 76 65 72 |with ear|lier ver|
|00003d70| 73 69 6f 6e 73 2e 1b 49 | 49 20 6d 57 69 6e 64 6f |sions..I|I mWindo|
|00003d80| 77 54 6f 46 72 6f 6e 74 | 2c 20 77 69 6e 64 6f 77 |wToFront|, window|
|00003d90| 49 44 4e 2d 2d 20 42 72 | 69 6e 67 73 20 61 20 77 |IDN-- Br|ings a w|
|00003da0| 69 6e 64 6f 77 20 74 6f | 20 74 68 65 20 66 72 6f |indow to| the fro|
|00003db0| 6e 74 2e 20 49 66 20 74 | 68 65 20 77 69 6e 64 6f |nt. If t|he windo|
|00003dc0| 77 27 73 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |w's appl|ication |
|00003dd0| 69 73 20 6e 6f 74 20 61 | 6c 72 65 61 64 79 20 69 |is not a|lready i|
|00003de0| 6e 24 2d 2d 20 66 72 6f | 6e 74 2c 20 69 74 20 77 |n$-- fro|nt, it w|
|00003df0| 69 6c 6c 20 62 65 20 6d | 61 64 65 20 66 72 6f 6e |ill be m|ade fron|
|00003e00| 74 6d 6f 73 74 2e 1a 49 | 49 20 6d 57 69 6e 64 6f |tmost..I|I mWindo|
|00003e10| 77 54 6f 42 61 63 6b 2c | 20 77 69 6e 64 6f 77 49 |wToBack,| windowI|
|00003e20| 44 46 2d 2d 20 53 65 6e | 64 73 20 61 20 77 69 6e |DF-- Sen|ds a win|
|00003e30| 64 6f 77 20 74 6f 20 74 | 68 65 20 62 61 63 6b 2e |dow to t|he back.|
|00003e40| 20 44 6f 65 73 20 6e 6f | 74 20 61 66 66 65 63 74 | Does no|t affect|
|00003e50| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 64 72 61 | applica|tion dra|
|00003e60| 77 20 6f 72 64 65 72 21 | 19 49 49 20 6d 43 6c 6f |w order!|.II mClo|
|00003e70| 73 65 57 69 6e 64 6f 77 | 2c 20 77 69 6e 64 6f 77 |seWindow|, window|
|00003e80| 49 44 4f 2d 2d 20 53 69 | 6d 75 6c 61 74 65 73 20 |IDO-- Si|mulates |
|00003e90| 61 20 6d 6f 75 73 65 20 | 70 72 65 73 73 20 6f 6e |a mouse |press on|
|00003ea0| 20 61 20 77 69 6e 64 6f | 77 27 73 20 63 6c 6f 73 | a windo|w's clos|
|00003eb0| 65 20 62 6f 78 2e 20 44 | 6f 65 73 20 6e 6f 74 20 |e box. D|oes not |
|00003ec0| 77 6f 72 6b 20 69 66 20 | 74 68 65 20 77 69 6e 64 |work if |the wind|
|00003ed0| 6f 77 4b 2d 2d 20 64 6f | 65 73 20 6e 6f 74 20 68 |owK-- do|es not h|
|00003ee0| 61 76 65 20 61 20 63 6c | 6f 73 65 20 62 6f 78 21 |ave a cl|ose box!|
|00003ef0| 20 41 6c 73 6f 2c 20 61 | 20 77 69 6e 64 6f 77 20 | Also, a| window |
|00003f00| 6d 61 79 20 6e 6f 74 20 | 68 61 76 65 20 61 20 63 |may not |have a c|
|00003f10| 6c 6f 73 65 20 62 6f 78 | 20 75 6e 74 69 6c 55 2d |lose box| untilU-|
|00003f20| 2d 20 69 74 27 73 20 66 | 72 6f 6e 74 6d 6f 73 74 |- it's f|rontmost|
|00003f30| 2e 20 57 69 74 68 20 73 | 6f 6d 65 20 61 70 70 73 |. With s|ome apps|
|00003f40| 2c 20 74 6f 20 63 6c 6f | 73 65 20 77 69 6e 64 6f |, to clo|se windo|
|00003f50| 77 73 2c 20 79 6f 75 20 | 6d 61 79 20 6e 65 65 64 |ws, you |may need|
|00003f60| 20 74 6f 20 73 65 6e 64 | 20 61 20 66 61 6b 65 20 | to send| a fake |
|00003f70| 6d 65 6e 75 51 2d 2d 20 | 63 6f 6d 6d 61 6e 64 20 |menuQ-- |command |
|00003f80| 74 6f 20 63 6c 6f 73 65 | 20 61 20 77 69 6e 64 6f |to close| a windo|
|00003f90| 77 2c 20 6f 72 20 73 65 | 6e 64 20 61 20 66 61 6b |w, or se|nd a fak|
|00003fa0| 65 20 6d 6f 75 73 65 20 | 70 72 65 73 73 20 74 6f |e mouse |press to|
|00003fb0| 20 73 6f 6d 65 20 69 6e | 74 65 72 66 61 63 65 20 | some in|terface |
|00003fc0| 67 61 64 67 65 74 50 2d | 2d 20 77 69 74 68 69 6e |gadgetP-|- within|
|00003fd0| 20 74 68 65 20 77 69 6e | 64 6f 77 20 61 72 65 61 | the win|dow area|
|00003fe0| 20 69 74 73 65 6c 66 2e | 20 4e 6f 74 65 20 31 3a | itself.| Note 1:|
|00003ff0| 20 6d 48 69 64 65 57 69 | 6e 64 6f 77 20 6d 61 79 | mHideWi|ndow may|
|00004000| 20 77 6f 72 6b 20 62 65 | 74 74 65 72 2d 2d 20 44 | work be|tter-- D|
|00004010| 69 72 65 63 74 6f 72 4a | 2d 2d 20 69 74 73 65 6c |irectorJ|-- itsel|
|00004020| 66 20 73 69 6d 70 6c 79 | 20 68 69 64 65 73 20 61 |f simply| hides a|
|00004030| 75 74 68 6f 72 69 6e 67 | 2d 74 69 6d 65 20 77 69 |uthoring|-time wi|
|00004040| 6e 64 6f 77 73 20 77 68 | 65 6e 20 70 72 65 73 73 |ndows wh|en press|
|00004050| 69 6e 67 20 74 68 65 20 | 63 6c 6f 73 65 20 62 6f |ing the |close bo|
|00004060| 78 2e 4b 2d 2d 20 4e 6f | 74 65 20 32 3a 20 57 69 |x.K-- No|te 2: Wi|
|00004070| 6e 64 6f 77 73 20 61 70 | 70 73 20 71 75 69 74 20 |ndows ap|ps quit |
|00004080| 77 68 65 6e 20 74 68 65 | 20 6d 61 69 6e 20 77 69 |when the| main wi|
|00004090| 6e 64 6f 77 20 63 6c 6f | 73 65 73 2c 20 62 75 74 |ndow clo|ses, but|
|000040a0| 20 6d 6f 73 74 20 4d 61 | 63 20 61 70 70 73 4e 2d | most Ma|c appsN-|
|000040b0| 2d 20 64 6f 6e 27 74 20 | 71 75 69 74 2c 20 61 6e |- don't |quit, an|
|000040c0| 64 20 73 74 69 6c 6c 20 | 73 68 6f 77 20 61 20 6d |d still |show a m|
|000040d0| 65 6e 75 2e 20 55 73 65 | 20 6d 52 75 64 65 51 75 |enu. Use| mRudeQu|
|000040e0| 69 74 54 61 73 6b 20 69 | 6e 20 73 75 63 68 20 63 |itTask i|n such c|
|000040f0| 61 73 65 73 2e 20 4e 6f | 74 65 20 33 3a 4e 2d 2d |ases. No|te 3:N--|
|00004100| 20 62 79 20 64 65 66 61 | 75 6c 74 2c 20 74 68 65 | by defa|ult, the|
|00004110| 20 63 65 6e 74 65 72 20 | 6f 66 20 74 68 65 20 63 | center |of the c|
|00004120| 6c 6f 73 65 20 62 6f 78 | 20 69 73 20 61 73 73 75 |lose box| is assu|
|00004130| 6d 65 64 20 74 6f 20 62 | 65 20 31 34 20 70 69 78 |med to b|e 14 pix|
|00004140| 65 6c 73 20 66 72 6f 6d | 20 74 68 65 50 2d 2d 20 |els from| theP-- |
|00004150| 6c 65 66 74 20 6f 66 20 | 74 68 65 20 77 69 6e 64 |left of |the wind|
|00004160| 6f 77 20 74 69 74 6c 65 | 20 62 61 72 2c 20 61 6e |ow title| bar, an|
|00004170| 64 20 38 20 70 69 78 65 | 6c 73 20 66 72 6f 6d 20 |d 8 pixe|ls from |
|00004180| 74 68 65 20 74 6f 70 2e | 20 59 6f 75 20 63 61 6e |the top.| You can|
|00004190| 20 63 68 61 6e 67 65 20 | 74 68 65 73 65 52 2d 2d | change |theseR--|
|000041a0| 20 76 61 6c 75 65 73 20 | 77 69 74 68 20 74 68 65 | values |with the|
|000041b0| 20 6d 53 65 74 43 6c 6f | 73 65 42 6f 78 4f 66 66 | mSetClo|seBoxOff|
|000041c0| 73 65 74 20 6d 65 74 68 | 6f 64 3b 20 79 6f 75 20 |set meth|od; you |
|000041d0| 63 61 6e 20 61 6c 73 6f | 20 75 73 65 20 74 68 65 |can also| use the|
|000041e0| 20 6d 46 69 6e 64 57 69 | 6e 64 6f 77 50 61 72 74 | mFindWi|ndowPart|
|000041f0| 4f 2d 2d 20 6d 65 74 68 | 6f 64 20 74 6f 20 6c 6f |O-- meth|od to lo|
|00004200| 63 61 74 65 20 6f 6e 65 | 20 6f 66 20 44 69 72 65 |cate one| of Dire|
|00004210| 63 74 6f 72 27 73 20 6f | 77 6e 20 77 69 6e 64 6f |ctor's o|wn windo|
|00004220| 77 73 27 20 63 6c 6f 73 | 65 20 62 6f 78 2e 20 54 |ws' clos|e box. T|
|00004230| 68 65 73 65 20 6d 65 74 | 68 6f 64 73 20 61 72 65 |hese met|hods are|
|00004240| 54 2d 2d 20 75 73 65 66 | 75 6c 20 77 68 65 6e 20 |T-- usef|ul when |
|00004250| 79 6f 75 20 6e 65 65 64 | 20 74 6f 20 75 73 65 20 |you need| to use |
|00004260| 6d 43 6c 6f 73 65 57 69 | 6e 64 6f 77 20 6f 6e 20 |mCloseWi|ndow on |
|00004270| 6e 6f 6e 2d 52 6f 6d 61 | 6e 20 73 79 73 74 65 6d |non-Roma|n system|
|00004280| 73 20 6f 72 20 77 69 74 | 68 20 6e 6f 6e 73 74 61 |s or wit|h nonsta|
|00004290| 6e 64 61 72 64 54 2d 2d | 20 65 78 74 65 6e 73 69 |ndardT--| extensi|
|000042a0| 6f 6e 73 20 74 68 61 74 | 20 61 6c 74 65 72 20 74 |ons that| alter t|
|000042b0| 68 65 20 6c 6f 6f 6b 20 | 6f 66 20 77 69 6e 64 6f |he look |of windo|
|000042c0| 77 20 74 69 74 6c 65 20 | 62 61 72 73 2e 20 52 65 |w title |bars. Re|
|000042d0| 74 75 72 6e 20 76 61 6c | 75 65 73 3a 20 30 3a 20 |turn val|ues: 0: |
|000042e0| 6f 6b 3b 20 31 3a 20 62 | 61 64 25 2d 2d 20 77 69 |ok; 1: b|ad%-- wi|
|000042f0| 6e 64 6f 77 49 44 3b 20 | 32 3a 20 6e 6f 20 77 69 |ndowID; |2: no wi|
|00004300| 6e 64 64 6f 77 20 74 69 | 74 6c 65 20 62 61 72 2e |nddow ti|tle bar.|
|00004310| 28 58 49 49 20 6d 53 65 | 74 43 6c 6f 73 65 42 6f |(XII mSe|tCloseBo|
|00004320| 78 4f 66 66 73 65 74 2c | 20 68 4f 66 66 73 65 74 |xOffset,| hOffset|
|00004330| 2c 20 76 4f 66 66 73 65 | 74 55 2d 2d 20 41 6c 6c |, vOffse|tU-- All|
|00004340| 6f 77 73 20 79 6f 75 20 | 74 6f 20 63 68 61 6e 67 |ows you |to chang|
|00004350| 65 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 61 73 |e the de|fault as|
|00004360| 73 75 6d 70 74 69 6f 6e | 20 74 68 61 74 20 61 20 |sumption| that a |
|00004370| 77 69 6e 64 6f 77 27 73 | 20 63 6c 6f 73 65 20 62 |window's| close b|
|00004380| 6f 78 20 69 73 20 31 34 | 20 70 69 78 65 6c 73 55 |ox is 14| pixelsU|
|00004390| 2d 2d 20 66 72 6f 6d 20 | 6c 65 66 74 20 61 6e 64 |-- from |left and|
|000043a0| 20 38 20 70 69 78 65 6c | 73 20 66 72 6f 6d 20 74 | 8 pixel|s from t|
|000043b0| 68 65 20 74 6f 70 20 6f | 66 20 74 68 65 20 77 69 |he top o|f the wi|
|000043c0| 6e 64 6f 77 20 74 69 74 | 6c 65 20 62 61 72 2e 20 |ndow tit|le bar. |
|000043d0| 41 66 66 65 63 74 73 20 | 6d 43 6c 6f 73 65 57 69 |Affects |mCloseWi|
|000043e0| 6e 64 6f 77 2e 19 49 49 | 49 20 6d 46 69 6e 64 57 |ndow..II|I mFindW|
|000043f0| 69 6e 64 6f 77 50 61 72 | 74 2c 20 78 2c 20 79 50 |indowPar|t, x, yP|
|00004400| 2d 2d 20 41 6c 6c 6f 77 | 73 20 79 6f 75 20 74 6f |-- Allow|s you to|
|00004410| 20 66 69 6e 64 20 77 68 | 61 74 20 70 61 72 74 20 | find wh|at part |
|00004420| 6f 66 20 61 20 77 69 6e | 64 6f 77 20 69 73 20 75 |of a win|dow is u|
|00004430| 6e 64 65 72 20 70 6f 69 | 6e 74 28 78 2c 79 29 2e |nder poi|nt(x,y).|
|00004440| 20 4f 6e 6c 79 20 61 70 | 70 6c 69 65 73 20 74 6f | Only ap|plies to|
|00004450| 55 2d 2d 20 74 68 65 20 | 44 69 72 65 63 74 6f 72 |U-- the |Director|
|00004460| 20 74 61 73 6b 27 73 20 | 6f 77 6e 20 77 69 6e 64 | task's |own wind|
|00004470| 6f 77 73 2e 20 52 65 74 | 75 72 6e 73 20 6e 65 67 |ows. Ret|urns neg|
|00004480| 61 74 69 76 65 20 6e 75 | 6d 62 65 72 20 6f 6e 20 |ative nu|mber on |
|00004490| 65 72 72 6f 72 2c 20 6f | 72 20 6f 6e 65 20 6f 66 |error, o|r one of|
|000044a0| 20 74 68 65 73 65 56 2d | 2d 20 63 6f 64 65 73 3a | theseV-|- codes:|
|000044b0| 20 30 3a 20 6f 75 74 73 | 69 64 65 20 61 6e 79 20 | 0: outs|ide any |
|000044c0| 44 69 72 65 63 74 6f 72 | 20 77 69 6e 64 6f 77 73 |Director| windows|
|000044d0| 3b 20 31 3a 20 69 6e 20 | 6d 65 6e 75 20 62 61 72 |; 1: in |menu bar|
|000044e0| 3b 20 32 3a 20 69 6e 20 | 64 65 73 6b 20 61 63 63 |; 2: in |desk acc|
|000044f0| 65 73 73 6f 72 79 20 77 | 69 6e 64 6f 77 56 2d 2d |essory w|indowV--|
|00004500| 20 74 68 61 74 27 73 20 | 62 65 65 6e 20 6c 61 75 | that's |been lau|
|00004510| 6e 63 68 65 64 20 69 6e | 20 44 69 72 65 63 74 6f |nched in| Directo|
|00004520| 72 27 73 20 6d 65 6d 6f | 72 79 20 70 61 72 74 69 |r's memo|ry parti|
|00004530| 74 69 6f 6e 3b 20 33 3a | 20 77 69 6e 64 6f 77 20 |tion; 3:| window |
|00004540| 63 6f 6e 74 65 6e 74 20 | 61 72 65 61 20 28 65 78 |content |area (ex|
|00004550| 63 65 70 74 52 2d 2d 20 | 61 6e 79 20 73 69 7a 65 |ceptR-- |any size|
|00004560| 20 62 6f 78 65 73 29 3b | 20 34 3a 20 74 69 74 6c | boxes);| 4: titl|
|00004570| 65 20 62 61 72 3b 20 35 | 3a 20 73 69 7a 65 20 62 |e bar; 5|: size b|
|00004580| 6f 78 20 28 61 63 74 69 | 76 65 20 77 69 6e 64 6f |ox (acti|ve windo|
|00004590| 77 73 20 6f 6e 6c 79 29 | 3b 20 36 3a 20 63 6c 6f |ws only)|; 6: clo|
|000045a0| 73 65 20 62 6f 78 3b 54 | 2d 2d 20 37 3a 20 7a 6f |se box;T|-- 7: zo|
|000045b0| 6f 6d 20 62 6f 78 20 28 | 73 74 61 6e 64 61 72 64 |om box (|standard|
|000045c0| 20 73 74 61 74 65 29 3b | 20 38 3a 20 7a 6f 6f 6d | state);| 8: zoom|
|000045d0| 20 62 6f 78 20 28 75 73 | 65 72 27 73 20 73 74 61 | box (us|er's sta|
|000045e0| 74 65 29 2e 20 44 69 6d | 65 6e 73 69 6f 6e 73 20 |te). Dim|ensions |
|000045f0| 61 72 65 20 72 65 6c 61 | 74 69 76 65 3a 2d 2d 20 |are rela|tive:-- |
|00004600| 74 6f 20 74 68 65 20 74 | 6f 70 20 6c 65 66 74 20 |to the t|op left |
|00004610| 6f 66 20 74 68 65 20 73 | 63 72 65 65 6e 20 77 69 |of the s|creen wi|
|00004620| 74 68 20 74 68 65 20 46 | 69 6e 64 65 72 20 6d 65 |th the F|inder me|
|00004630| 6e 75 20 62 61 72 2e 1a | 49 49 20 6d 57 69 6e 64 |nu bar..|II mWind|
|00004640| 6f 77 45 78 69 73 74 73 | 2c 20 77 69 6e 64 6f 77 |owExists|, window|
|00004650| 49 44 39 2d 2d 20 52 65 | 74 75 72 6e 73 20 54 52 |ID9-- Re|turns TR|
|00004660| 55 45 20 69 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |UE if th|e window|
|00004670| 20 73 74 69 6c 6c 20 65 | 78 69 73 74 73 2c 20 46 | still e|xists, F|
|00004680| 41 4c 53 45 20 69 66 20 | 6e 6f 74 2e 18 49 49 20 |ALSE if |not..II |
|00004690| 6d 53 68 6f 77 57 69 6e | 64 6f 77 2c 20 77 69 6e |mShowWin|dow, win|
|000046a0| 64 6f 77 49 44 53 2d 2d | 20 53 68 6f 77 73 20 61 |dowIDS--| Shows a|
|000046b0| 20 68 69 64 64 65 6e 20 | 77 69 6e 64 6f 77 20 28 | hidden |window (|
|000046c0| 61 6e 64 20 6d 61 6b 65 | 73 20 69 74 73 20 61 70 |and make|s its ap|
|000046d0| 70 6c 69 63 61 74 69 6f | 6e 20 66 72 6f 6e 74 6d |plicatio|n frontm|
|000046e0| 6f 73 74 20 69 66 20 69 | 74 27 73 20 6e 6f 74 20 |ost if i|t's not |
|000046f0| 61 6c 72 65 61 64 79 29 | 2e 50 2d 2d 20 59 6f 75 |already)|.P-- You|
|00004700| 20 70 72 6f 62 61 62 6c | 79 20 77 61 6e 74 20 74 | probabl|y want t|
|00004710| 6f 20 75 73 65 20 6d 53 | 65 74 41 63 74 69 76 65 |o use mS|etActive|
|00004720| 57 69 6e 64 6f 77 20 6f | 72 20 6d 57 69 6e 64 6f |Window o|r mWindo|
|00004730| 77 54 6f 46 72 6f 6e 74 | 20 72 69 67 68 74 20 61 |wToFront| right a|
|00004740| 66 74 65 72 20 74 68 69 | 73 21 3b 2d 2d 20 52 65 |fter thi|s!;-- Re|
|00004750| 74 75 72 6e 73 20 30 20 | 66 6f 72 20 73 75 63 63 |turns 0 |for succ|
|00004760| 65 73 73 2c 20 6f 72 20 | 2d 31 20 69 66 20 74 68 |ess, or |-1 if th|
|00004770| 65 20 77 69 6e 64 6f 77 | 49 44 20 69 73 20 69 6e |e window|ID is in|
|00004780| 76 61 6c 69 64 2e 18 49 | 49 20 6d 48 69 64 65 57 |valid..I|I mHideW|
|00004790| 69 6e 64 6f 77 2c 20 77 | 69 6e 64 6f 77 49 44 54 |indow, w|indowIDT|
|000047a0| 2d 2d 20 48 69 64 65 73 | 20 61 20 76 69 73 69 62 |-- Hides| a visib|
|000047b0| 6c 65 20 77 69 6e 64 6f | 77 20 28 61 6e 64 20 6d |le windo|w (and m|
|000047c0| 61 6b 65 73 20 69 74 73 | 20 61 70 70 6c 69 63 61 |akes its| applica|
|000047d0| 74 69 6f 6e 20 66 72 6f | 6e 74 6d 6f 73 74 20 69 |tion fro|ntmost i|
|000047e0| 66 20 69 74 27 73 20 6e | 6f 74 20 61 6c 72 65 61 |f it's n|ot alrea|
|000047f0| 64 79 29 2e 4e 2d 2d 20 | 4e 6f 74 65 20 74 68 61 |dy).N-- |Note tha|
|00004800| 74 20 61 6e 20 61 70 70 | 20 6d 69 67 68 74 20 6e |t an app| might n|
|00004810| 6f 74 20 72 65 61 6c 69 | 7a 65 20 69 74 73 20 77 |ot reali|ze its w|
|00004820| 69 6e 64 6f 77 20 69 73 | 20 68 69 64 64 65 6e 20 |indow is| hidden |
|00004830| 28 69 2e 65 2e 2c 20 74 | 68 65 20 44 69 72 65 63 |(i.e., t|he Direc|
|00004840| 74 6f 72 4d 2d 2d 20 61 | 75 74 68 6f 72 69 6e 67 |torM-- a|uthoring|
|00004850| 20 77 69 6e 64 6f 77 73 | 20 6d 61 79 20 6e 65 65 | windows| may nee|
|00004860| 64 20 74 6f 20 62 65 20 | 73 65 6c 65 63 74 65 64 |d to be |selected|
|00004870| 20 74 77 69 63 65 20 69 | 6e 20 74 68 65 20 6d 65 | twice i|n the me|
|00004880| 6e 75 73 20 74 6f 20 72 | 65 61 70 70 65 61 72 29 |nus to r|eappear)|
|00004890| 2e 3b 2d 2d 20 52 65 74 | 75 72 6e 73 20 30 20 66 |.;-- Ret|urns 0 f|
|000048a0| 6f 72 20 73 75 63 63 65 | 73 73 2c 20 6f 72 20 2d |or succe|ss, or -|
|000048b0| 31 20 69 66 20 74 68 65 | 20 77 69 6e 64 6f 77 49 |1 if the| windowI|
|000048c0| 44 20 69 73 20 69 6e 76 | 61 6c 69 64 2e 1c 49 49 |D is inv|alid..II|
|000048d0| 20 6d 4d 69 6e 69 6d 69 | 7a 65 57 69 6e 64 6f 77 | mMinimi|zeWindow|
|000048e0| 2c 20 77 69 6e 64 6f 77 | 49 44 54 2d 2d 20 4d 61 |, window|IDT-- Ma|
|000048f0| 6b 65 73 20 61 20 77 69 | 6e 64 6f 77 20 75 73 65 |kes a wi|ndow use|
|00004900| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00004910| 20 64 65 66 69 6e 65 64 | 20 73 74 61 6e 64 61 72 | defined| standar|
|00004920| 64 20 73 74 61 74 65 20 | 28 74 68 65 20 63 6c 6f |d state |(the clo|
|00004930| 73 65 73 74 20 65 71 75 | 69 76 61 6c 65 6e 74 52 |sest equ|ivalentR|
|00004940| 2d 2d 20 6f 6e 20 74 68 | 65 20 4d 61 63 20 74 6f |-- on th|e Mac to|
|00004950| 20 74 68 69 73 20 57 69 | 6e 64 6f 77 73 20 66 75 | this Wi|ndows fu|
|00004960| 6e 63 74 69 6f 6e 29 2e | 20 44 65 66 61 75 6c 74 |nction).| Default|
|00004970| 20 61 73 73 75 6d 70 74 | 69 6f 6e 73 20 61 62 6f | assumpt|ions abo|
|00004980| 75 74 20 74 68 65 20 6c | 6f 63 61 74 69 6f 6e 20 |ut the l|ocation |
|00004990| 6f 66 54 2d 2d 20 74 68 | 65 20 73 74 61 6e 64 61 |ofT-- th|e standa|
|000049a0| 72 64 20 73 74 61 74 65 | 20 7a 6f 6f 6d 20 67 61 |rd state| zoom ga|
|000049b0| 64 67 65 74 20 69 6e 20 | 74 68 65 20 77 69 6e 64 |dget in |the wind|
|000049c0| 6f 77 20 74 69 74 6c 65 | 20 62 61 72 20 63 61 6e |ow title| bar can|
|000049d0| 20 62 65 20 6f 76 65 72 | 72 69 64 64 65 6e 20 77 | be over|ridden w|
|000049e0| 69 74 68 20 74 68 65 4f | 2d 2d 20 6d 53 65 74 53 |ith theO|-- mSetS|
|000049f0| 74 61 6e 64 61 72 64 5a | 6f 6f 6d 4f 66 66 73 65 |tandardZ|oomOffse|
|00004a00| 74 20 6d 65 74 68 6f 64 | 2e 20 52 65 74 75 72 6e |t method|. Return|
|00004a10| 73 20 2d 31 20 66 6f 72 | 20 62 61 64 20 77 69 6e |s -1 for| bad win|
|00004a20| 64 6f 77 49 44 20 6f 72 | 20 30 20 66 6f 72 20 73 |dowID or| 0 for s|
|00004a30| 75 63 63 65 73 73 2e 54 | 2d 2d 20 4e 6f 74 65 20 |uccess.T|-- Note |
|00004a40| 74 68 61 74 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |that the| window |
|00004a50| 61 6e 64 20 69 74 73 20 | 61 70 70 20 73 68 6f 75 |and its |app shou|
|00004a60| 6c 64 20 61 6c 72 65 61 | 64 79 20 62 65 20 66 72 |ld alrea|dy be fr|
|00004a70| 6f 6e 74 6d 6f 73 74 20 | 28 6f 72 20 74 68 65 20 |ontmost |(or the |
|00004a80| 73 74 61 74 65 20 6f 66 | 20 74 68 65 4d 2d 2d 20 |state of| theM-- |
|00004a90| 77 69 6e 64 6f 77 20 6d | 69 67 68 74 20 73 69 6d |window m|ight sim|
|00004aa0| 70 6c 79 20 62 65 20 74 | 6f 67 67 6c 65 64 20 66 |ply be t|oggled f|
|00004ab0| 72 6f 6d 20 69 74 73 20 | 63 75 72 72 65 6e 74 20 |rom its |current |
|00004ac0| 73 74 61 74 65 2c 20 6f | 72 20 6c 65 66 74 20 75 |state, o|r left u|
|00004ad0| 6e 63 68 61 6e 67 65 64 | 29 2e 1c 49 49 20 6d 4d |nchanged|)..II mM|
|00004ae0| 61 78 69 6d 69 7a 65 57 | 69 6e 64 6f 77 2c 20 77 |aximizeW|indow, w|
|00004af0| 69 6e 64 6f 77 49 44 4b | 2d 2d 20 4d 61 6b 65 73 |indowIDK|-- Makes|
|00004b00| 20 61 20 77 69 6e 64 6f | 77 20 75 73 65 20 74 68 | a windo|w use th|
|00004b10| 65 20 75 73 65 72 20 64 | 65 66 69 6e 65 64 20 77 |e user d|efined w|
|00004b20| 69 6e 64 6f 77 20 73 74 | 61 74 65 20 28 74 68 65 |indow st|ate (the|
|00004b30| 20 63 6c 6f 73 65 73 74 | 20 65 71 75 69 76 61 6c | closest| equival|
|00004b40| 65 6e 74 52 2d 2d 20 6f | 6e 20 74 68 65 20 4d 61 |entR-- o|n the Ma|
|00004b50| 63 20 74 6f 20 74 68 69 | 73 20 57 69 6e 64 6f 77 |c to thi|s Window|
|00004b60| 73 20 66 75 6e 63 74 69 | 6f 6e 29 2e 20 44 65 66 |s functi|on). Def|
|00004b70| 61 75 6c 74 20 61 73 73 | 75 6d 70 74 69 6f 6e 73 |ault ass|umptions|
|00004b80| 20 61 62 6f 75 74 20 74 | 68 65 20 6c 6f 63 61 74 | about t|he locat|
|00004b90| 69 6f 6e 20 6f 66 50 2d | 2d 20 74 68 65 20 75 73 |ion ofP-|- the us|
|00004ba0| 65 72 20 73 74 61 74 65 | 20 7a 6f 6f 6d 20 67 61 |er state| zoom ga|
|00004bb0| 64 67 65 74 20 69 6e 20 | 74 68 65 20 77 69 6e 64 |dget in |the wind|
|00004bc0| 6f 77 20 74 69 74 6c 65 | 20 62 61 72 20 63 61 6e |ow title| bar can|
|00004bd0| 20 62 65 20 6f 76 65 72 | 72 69 64 64 65 6e 20 77 | be over|ridden w|
|00004be0| 69 74 68 20 74 68 65 54 | 2d 2d 20 4e 6f 74 65 20 |ith theT|-- Note |
|00004bf0| 74 68 61 74 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |that the| window |
|00004c00| 61 6e 64 20 69 74 73 20 | 61 70 70 20 73 68 6f 75 |and its |app shou|
|00004c10| 6c 64 20 61 6c 72 65 61 | 64 79 20 62 65 20 66 72 |ld alrea|dy be fr|
|00004c20| 6f 6e 74 6d 6f 73 74 20 | 28 6f 72 20 74 68 65 20 |ontmost |(or the |
|00004c30| 73 74 61 74 65 20 6f 66 | 20 74 68 65 4d 2d 2d 20 |state of| theM-- |
|00004c40| 77 69 6e 64 6f 77 20 6d | 69 67 68 74 20 73 69 6d |window m|ight sim|
|00004c50| 70 6c 79 20 62 65 20 74 | 6f 67 67 6c 65 64 20 66 |ply be t|oggled f|
|00004c60| 72 6f 6d 20 69 74 73 20 | 63 75 72 72 65 6e 74 20 |rom its |current |
|00004c70| 73 74 61 74 65 2c 20 6f | 72 20 6c 65 66 74 20 75 |state, o|r left u|
|00004c80| 6e 63 68 61 6e 67 65 64 | 29 2e 4b 2d 2d 20 6d 53 |nchanged|).K-- mS|
|00004c90| 65 74 55 73 65 72 5a 6f | 6f 6d 4f 66 66 73 65 74 |etUserZo|omOffset|
|00004ca0| 20 6d 65 74 68 6f 64 2e | 20 52 65 74 75 72 6e 73 | method.| Returns|
|00004cb0| 20 2d 31 20 66 6f 72 20 | 62 61 64 20 77 69 6e 64 | -1 for |bad wind|
|00004cc0| 6f 77 49 44 20 6f 72 20 | 30 20 66 6f 72 20 73 75 |owID or |0 for su|
|00004cd0| 63 63 65 73 73 2e 1b 49 | 49 20 6d 52 65 73 74 6f |ccess..I|I mResto|
|00004ce0| 72 65 57 69 6e 64 6f 77 | 2c 20 77 69 6e 64 6f 77 |reWindow|, window|
|00004cf0| 49 44 54 2d 2d 20 4f 6e | 20 74 68 65 20 4d 61 63 |IDT-- On| the Mac|
|00004d00| 2c 20 6a 75 73 74 20 61 | 20 73 79 6e 6f 6e 6d 79 |, just a| synonmy|
|00004d10| 6d 20 66 6f 72 20 6d 4d | 61 78 69 6d 69 7a 65 57 |m for mM|aximizeW|
|00004d20| 69 6e 64 6f 77 20 28 77 | 68 69 63 68 20 73 65 74 |indow (w|hich set|
|00004d30| 73 20 74 68 65 20 75 73 | 65 72 20 7a 6f 6f 6d 20 |s the us|er zoom |
|00004d40| 73 74 61 74 65 29 2e 1c | 58 49 49 20 6d 53 65 74 |state)..|XII mSet|
|00004d50| 55 73 65 72 5a 6f 6f 6d | 4f 66 66 73 65 74 2c 20 |UserZoom|Offset, |
|00004d60| 78 2c 20 79 20 58 49 49 | 20 6d 53 65 74 53 74 61 |x, y XII| mSetSta|
|00004d70| 6e 64 61 72 64 5a 6f 6f | 6d 4f 66 66 73 65 74 2c |ndardZoo|mOffset,|
|00004d80| 20 78 2c 20 79 58 2d 2d | 20 41 6c 6c 6f 77 73 20 | x, yX--| Allows |
|00004d90| 79 6f 75 20 74 6f 20 6f | 76 65 72 72 69 64 65 20 |you to o|verride |
|00004da0| 74 68 65 20 64 65 66 61 | 75 6c 74 20 61 73 73 75 |the defa|ult assu|
|00004db0| 6d 70 74 69 6f 6e 20 74 | 68 61 74 20 74 68 65 20 |mption t|hat the |
|00004dc0| 75 73 65 72 20 61 6e 64 | 20 73 74 61 6e 64 61 72 |user and| standar|
|00004dd0| 64 20 7a 6f 6f 6d 20 67 | 61 64 67 65 74 73 56 2d |d zoom g|adgetsV-|
|00004de0| 2d 20 61 72 65 20 6c 6f | 63 61 74 65 64 20 31 34 |- are lo|cated 14|
|00004df0| 20 70 69 78 65 6c 73 20 | 6c 65 66 74 20 61 6e 64 | pixels |left and|
|00004e00| 20 38 20 70 69 78 65 6c | 73 20 64 6f 77 6e 20 66 | 8 pixel|s down f|
|00004e10| 72 6f 6d 20 74 68 65 20 | 74 6f 70 20 72 69 67 68 |rom the |top righ|
|00004e20| 74 20 6f 66 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |t of the| window |
|00004e30| 74 69 74 6c 65 54 2d 2d | 20 62 61 72 2e 20 54 68 |titleT--| bar. Th|
|00004e40| 69 73 20 63 61 6e 20 62 | 65 20 75 73 65 66 75 6c |is can b|e useful|
|00004e50| 20 6f 6e 20 6e 6f 6e 2d | 52 6f 6d 61 6e 20 73 79 | on non-|Roman sy|
|00004e60| 73 74 65 6d 20 76 65 72 | 73 69 6f 6e 73 2c 20 77 |stem ver|sions, w|
|00004e70| 68 65 6e 20 74 68 69 72 | 64 2d 70 61 72 74 79 20 |hen thir|d-party |
|00004e80| 65 78 74 65 6e 73 69 6f | 6e 73 50 2d 2d 20 6c 69 |extensio|nsP-- li|
|00004e90| 6b 65 20 41 61 72 6f 6e | 20 63 68 61 6e 67 65 20 |ke Aaron| change |
|00004ea0| 74 68 65 20 61 70 70 65 | 61 72 61 6e 63 65 20 6f |the appe|arance o|
|00004eb0| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 20 74 69 74 |f the wi|ndow tit|
|00004ec0| 6c 65 20 62 61 72 73 2c | 20 6f 72 20 69 6e 20 66 |le bars,| or in f|
|00004ed0| 75 74 75 72 65 20 41 70 | 70 6c 65 52 2d 2d 20 73 |uture Ap|pleR-- s|
|00004ee0| 79 73 74 65 6d 20 76 65 | 72 73 69 6f 6e 73 2e 20 |ystem ve|rsions. |
|00004ef0| 55 73 65 20 6d 46 69 6e | 64 57 69 6e 64 6f 77 50 |Use mFin|dWindowP|
|00004f00| 61 72 74 20 74 6f 20 64 | 65 74 65 72 6d 69 6e 65 |art to d|etermine|
|00004f10| 20 74 68 69 73 20 69 6e | 66 6f 72 6d 61 74 69 6f | this in|formatio|
|00004f20| 6e 20 6f 6e 20 6e 6f 6e | 2d 52 6f 6d 61 6e 0b 2d |n on non|-Roman.-|
|00004f30| 2d 20 73 79 73 74 65 6d | 73 2e 02 2d 2d 02 2d 2d |- system|s..--.--|
|00004f40| 31 2d 2d 20 4f 74 68 65 | 72 20 6d 65 74 68 6f 64 |1-- Othe|r method|
|00004f50| 73 2c 20 6e 6f 74 20 79 | 65 74 20 70 6c 61 63 65 |s, not y|et place|
|00004f60| 64 20 69 6e 20 63 61 74 | 65 67 6f 72 69 65 73 2e |d in cat|egories.|
|00004f70| 2e 2e 31 2d 2d 20 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..1-- --|--------|
|00004f80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004f90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004fa0| 2d 2d 2d 2d 02 2d 2d 24 | 49 49 49 49 20 6d 46 61 |----.--$|IIII mFa|
|00004fb0| 6b 65 4d 6f 75 73 65 43 | 6c 69 63 6b 2c 20 77 69 |keMouseC|lick, wi|
|00004fc0| 6e 64 6f 77 49 44 2c 20 | 78 2c 20 79 4c 2d 2d 20 |ndowID, |x, yL-- |
|00004fd0| 53 69 6d 75 6c 61 74 65 | 73 20 61 20 6d 6f 75 73 |Simulate|s a mous|
|00004fe0| 65 20 63 6c 69 63 6b 20 | 61 6e 64 20 72 65 6c 65 |e click |and rele|
|00004ff0| 61 73 65 20 61 74 20 70 | 6f 69 6e 74 28 78 2c 79 |ase at p|oint(x,y|
|00005000| 29 2e 20 49 66 20 77 69 | 6e 64 6f 77 49 44 20 69 |). If wi|ndowID i|
|00005010| 73 20 6e 6f 74 20 74 68 | 65 4b 2d 2d 20 66 72 6f |s not th|eK-- fro|
|00005020| 6e 74 6d 6f 73 74 20 77 | 69 6e 64 6f 77 2c 20 74 |ntmost w|indow, t|
|00005030| 68 69 73 20 6d 65 74 68 | 6f 64 20 6d 61 6b 65 73 |his meth|od makes|
|00005040| 20 69 74 20 73 6f 20 62 | 65 66 6f 72 65 20 66 61 | it so b|efore fa|
|00005050| 6b 69 6e 67 20 74 68 65 | 20 6d 6f 75 73 65 20 63 |king the| mouse c|
|00005060| 6c 69 63 6b 2e 49 2d 2d | 20 4f 6e 20 57 69 6e 64 |lick.I--| On Wind|
|00005070| 6f 77 73 2c 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |ows, the| window |
|00005080| 69 73 20 2a 6e 6f 74 2a | 20 61 75 74 6f 6d 61 74 |is *not*| automat|
|00005090| 69 63 61 6c 6c 79 20 6d | 61 64 65 20 66 72 6f 6e |ically m|ade fron|
|000050a0| 74 6d 6f 73 74 2c 20 68 | 6f 77 65 76 65 72 2e 4c |tmost, h|owever.L|
|000050b0| 2d 2d 20 53 75 70 70 6c | 79 20 30 20 61 73 20 74 |-- Suppl|y 0 as t|
|000050c0| 68 65 20 77 69 6e 64 6f | 77 49 44 20 69 66 20 79 |he windo|wID if y|
|000050d0| 6f 75 20 64 6f 6e 27 74 | 20 77 61 6e 74 20 74 68 |ou don't| want th|
|000050e0| 65 20 63 6c 69 63 6b 20 | 73 65 6e 74 20 74 6f 20 |e click |sent to |
|000050f0| 61 6e 79 20 73 70 65 63 | 69 66 69 63 4c 2d 2d 20 |any spec|ificL-- |
|00005100| 77 69 6e 64 6f 77 2e 20 | 49 74 27 73 20 75 70 20 |window. |It's up |
|00005110| 74 6f 20 79 6f 75 20 74 | 6f 20 61 73 73 75 72 65 |to you t|o assure|
|00005120| 20 74 68 61 74 20 78 2c | 79 20 66 61 6c 6c 73 20 | that x,|y falls |
|00005130| 77 69 74 68 69 6e 20 74 | 68 65 20 77 69 6e 64 6f |within t|he windo|
|00005140| 77 27 73 20 61 72 65 61 | 3b 4b 2d 2d 20 63 6c 69 |w's area|;K-- cli|
|00005150| 63 6b 73 20 6f 75 74 73 | 69 64 65 20 63 6f 75 6c |cks outs|ide coul|
|00005160| 64 20 61 63 74 69 76 61 | 74 65 20 6f 74 68 65 72 |d activa|te other|
|00005170| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 2e 20 54 | applica|tions. T|
|00005180| 68 69 73 20 6d 65 74 68 | 6f 64 20 77 6f 6e 27 74 |his meth|od won't|
|00005190| 20 73 65 6e 64 3f 2d 2d | 20 63 6c 69 63 6b 73 20 | send?--| clicks |
|000051a0| 74 6f 20 6d 65 6e 75 73 | 2c 20 75 6e 66 6f 72 74 |to menus|, unfort|
|000051b0| 75 6e 61 74 65 6c 79 2e | 20 55 73 65 20 6d 46 61 |unately.| Use mFa|
|000051c0| 6b 65 43 68 61 72 43 6f | 64 65 20 66 6f 72 20 6d |keCharCo|de for m|
|000051d0| 65 6e 75 73 2e 28 49 49 | 49 49 20 6d 46 61 6b 65 |enus.(II|II mFake|
|000051e0| 4d 6f 75 73 65 43 6c 69 | 63 6b 57 61 69 74 2c 20 |MouseCli|ckWait, |
|000051f0| 77 69 6e 64 6f 77 49 44 | 2c 20 78 2c 20 79 49 2d |windowID|, x, yI-|
|00005200| 2d 20 4f 6e 20 74 68 65 | 20 4d 61 63 2c 20 61 20 |- On the| Mac, a |
|00005210| 73 79 6e 6f 6e 79 6d 20 | 66 6f 20 6d 46 61 6b 65 |synonym |fo mFake|
|00005220| 4d 6f 75 73 65 43 6c 69 | 63 6b 2e 20 54 68 65 20 |MouseCli|ck. The |
|00005230| 64 69 66 66 65 72 65 6e | 74 20 74 65 63 68 69 71 |differen|t techiq|
|00005240| 75 65 73 20 74 68 61 74 | 47 2d 2d 20 75 6e 64 65 |ues that|G-- unde|
|00005250| 72 6c 69 65 20 74 68 65 | 20 74 77 6f 20 73 65 70 |rlie the| two sep|
|00005260| 61 72 61 74 65 20 6d 65 | 74 68 6f 64 73 20 6f 6e |arate me|thods on|
|00005270| 20 57 69 6e 64 6f 77 73 | 20 64 6f 6e 27 74 20 65 | Windows| don't e|
|00005280| 78 69 73 74 20 6f 6e 20 | 74 68 65 20 4d 61 63 2e |xist on |the Mac.|
|00005290| 2f 49 49 49 49 49 49 20 | 6d 46 61 6b 65 4d 6f 75 |/IIIIII |mFakeMou|
|000052a0| 73 65 44 72 61 67 2c 20 | 77 69 6e 64 6f 77 49 44 |seDrag, |windowID|
|000052b0| 2c 20 78 31 2c 20 79 31 | 2c 20 78 32 2c 20 79 32 |, x1, y1|, x2, y2|
|000052c0| 47 2d 2d 20 53 69 6d 75 | 6c 61 74 65 73 20 64 72 |G-- Simu|lates dr|
|000052d0| 61 67 67 69 6e 67 20 74 | 68 65 20 6d 6f 75 73 65 |agging t|he mouse|
|000052e0| 20 66 72 6f 6d 20 78 31 | 2c 79 31 20 74 6f 20 78 | from x1|,y1 to x|
|000052f0| 32 2c 79 32 20 69 6e 20 | 77 69 6e 64 6f 77 20 77 |2,y2 in |window w|
|00005300| 69 6e 64 6f 77 49 44 2e | 3d 2d 2d 20 4d 61 6b 65 |indowID.|=-- Make|
|00005310| 73 20 74 68 65 20 77 69 | 6e 64 6f 77 20 66 72 6f |s the wi|ndow fro|
|00005320| 6e 74 6d 6f 73 74 2c 20 | 69 66 20 69 74 27 73 20 |ntmost, |if it's |
|00005330| 6e 6f 74 20 61 6c 72 65 | 61 64 79 20 66 72 6f 6e |not alre|ady fron|
|00005340| 74 6d 6f 73 74 2e 4c 2d | 2d 20 53 75 70 70 6c 79 |tmost.L-|- Supply|
|00005350| 20 30 20 61 73 20 74 68 | 65 20 77 69 6e 64 6f 77 | 0 as th|e window|
|00005360| 49 44 20 69 66 20 79 6f | 75 20 64 6f 6e 27 74 20 |ID if yo|u don't |
|00005370| 77 61 6e 74 20 74 68 65 | 20 63 6c 69 63 6b 20 73 |want the| click s|
|00005380| 65 6e 74 20 74 6f 20 61 | 6e 79 20 73 70 65 63 69 |ent to a|ny speci|
|00005390| 66 69 63 48 2d 2d 20 77 | 69 6e 64 6f 77 2e 20 42 |ficH-- w|indow. B|
|000053a0| 65 63 61 75 73 65 20 63 | 65 72 74 61 69 6e 20 4d |ecause c|ertain M|
|000053b0| 61 63 20 73 79 73 74 65 | 6d 20 66 75 6e 63 74 69 |ac syste|m functi|
|000053c0| 6f 6e 73 2d 2d 20 6c 69 | 6b 65 20 73 65 6c 65 63 |ons-- li|ke selec|
|000053d0| 74 69 6e 67 20 6d 65 6e | 75 73 2d 2d 4b 2d 2d 20 |ting men|us--K-- |
|000053e0| 61 63 74 75 61 6c 6c 79 | 20 72 65 71 75 69 72 65 |actually| require|
|000053f0| 20 74 68 65 20 6d 6f 75 | 73 65 20 63 75 72 73 6f | the mou|se curso|
|00005400| 72 20 74 6f 20 62 65 20 | 6c 6f 63 61 74 65 64 20 |r to be |located |
|00005410| 69 6e 20 74 68 65 20 6d | 65 6e 75 20 61 72 65 61 |in the m|enu area|
|00005420| 73 20 61 6e 64 20 74 6f | 48 2d 2d 20 6d 6f 76 65 |s and to|H-- move|
|00005430| 2c 20 74 68 69 73 20 6d | 65 74 68 6f 64 20 6d 61 |, this m|ethod ma|
|00005440| 79 20 6e 6f 74 20 77 6f | 72 6b 20 77 69 74 68 20 |y not wo|rk with |
|00005450| 61 6c 6c 20 64 72 61 67 | 20 6f 70 65 72 61 74 69 |all drag| operati|
|00005460| 6f 6e 73 2e 20 48 6f 77 | 65 76 65 72 2c 20 79 6f |ons. How|ever, yo|
|00005470| 75 49 2d 2d 20 2a 63 61 | 6e 2a 20 64 72 61 67 20 |uI-- *ca|n* drag |
|00005480| 73 69 7a 65 20 62 6f 78 | 65 73 20 77 69 74 68 20 |size box|es with |
|00005490| 69 74 2e 20 54 68 69 73 | 20 63 6f 6d 70 65 6e 73 |it. This| compens|
|000054a0| 61 74 65 73 20 66 6f 72 | 20 74 68 65 20 64 69 66 |ates for| the dif|
|000054b0| 66 65 72 65 6e 63 65 73 | 20 69 6e 48 2d 2d 20 74 |ferences| inH-- t|
|000054c0| 68 65 20 4d 61 63 20 69 | 6d 70 6c 65 6d 65 6e 74 |he Mac i|mplement|
|000054d0| 61 74 69 6f 6e 20 6f 66 | 20 6d 53 65 74 57 69 6e |ation of| mSetWin|
|000054e0| 64 6f 77 4f 75 74 73 69 | 64 65 52 65 63 74 2e 20 |dowOutsi|deRect. |
|000054f0| 55 73 65 20 6d 46 61 6b | 65 43 68 61 72 43 6f 64 |Use mFak|eCharCod|
|00005500| 65 20 74 6f 42 2d 2d 20 | 73 65 6e 64 20 6d 65 6e |e toB-- |send men|
|00005510| 75 20 73 65 6c 65 63 74 | 69 6f 6e 73 20 28 75 73 |u select|ions (us|
|00005520| 69 6e 67 20 6b 65 79 62 | 6f 61 72 64 20 73 68 6f |ing keyb|oard sho|
|00005530| 72 74 63 75 74 73 20 66 | 6f 72 20 6d 65 6e 75 20 |rtcuts f|or menu |
|00005540| 69 74 65 6d 73 29 2e 4b | 2d 2d 20 4e 6f 74 65 3a |items).K|-- Note:|
|00005550| 20 74 68 69 73 20 6d 65 | 74 68 6f 64 20 69 73 20 | this me|thod is |
|00005560| 6f 6e 6c 79 20 75 73 61 | 62 6c 65 20 6f 6e 20 74 |only usa|ble on t|
|00005570| 68 65 20 4d 61 63 20 28 | 57 69 6e 64 6f 77 73 20 |he Mac (|Windows |
|00005580| 77 6f 72 6b 73 20 64 69 | 66 66 65 72 65 6e 74 6c |works di|fferentl|
|00005590| 79 29 2e 2e 49 49 49 49 | 20 6d 46 61 6b 65 43 68 |y)..IIII| mFakeCh|
|000055a0| 61 72 43 6f 64 65 2c 20 | 77 69 6e 64 6f 77 49 44 |arCode, |windowID|
|000055b0| 2c 20 63 68 61 72 4e 75 | 6d 2c 20 63 6f 64 65 4e |, charNu|m, codeN|
|000055c0| 75 6d 4e 2d 2d 20 46 61 | 6b 65 73 20 61 20 6b 65 |umN-- Fa|kes a ke|
|000055d0| 79 70 72 65 73 73 2c 20 | 69 6e 63 6c 75 64 69 6e |ypress, |includin|
|000055e0| 67 20 6d 6f 64 69 66 69 | 65 72 20 6b 65 79 73 20 |g modifi|er keys |
|000055f0| 6c 69 6b 65 20 63 6f 6d | 6d 61 6e 64 2c 20 63 6f |like com|mand, co|
|00005600| 6e 74 72 6f 6c 2c 20 65 | 74 63 2e 20 4e 6f 74 65 |ntrol, e|tc. Note|
|00005610| 3a 52 2d 2d 20 4d 61 63 | 20 6b 65 79 20 26 20 6d |:R-- Mac| key & m|
|00005620| 6f 75 73 65 20 65 76 65 | 6e 74 73 2c 20 75 6e 6c |ouse eve|nts, unl|
|00005630| 69 6b 65 20 57 69 6e 64 | 6f 77 73 2c 20 61 72 65 |ike Wind|ows, are|
|00005640| 6e 27 74 20 73 65 6e 74 | 20 64 69 72 65 63 74 6c |n't sent| directl|
|00005650| 79 20 74 6f 20 77 69 6e | 64 6f 77 73 2c 20 73 6f |y to win|dows, so|
|00005660| 20 74 68 65 4f 2d 2d 20 | 73 75 70 70 6c 69 65 64 | theO-- |supplied|
|00005670| 20 77 69 6e 64 6f 77 49 | 44 20 77 69 6c 6c 20 73 | windowI|D will s|
|00005680| 69 6d 70 6c 79 20 62 65 | 20 6d 61 64 65 20 66 72 |imply be| made fr|
|00005690| 6f 6e 74 6d 6f 73 74 20 | 69 66 20 69 74 27 73 20 |ontmost |if it's |
|000056a0| 6e 6f 74 20 61 6c 72 65 | 61 64 79 2e 20 63 68 61 |not alre|ady. cha|
|000056b0| 72 4e 75 6d 50 2d 2d 20 | 69 6e 63 6c 75 64 65 73 |rNumP-- |includes|
|000056c0| 20 74 68 65 20 41 53 43 | 49 49 20 63 6f 64 65 2c | the ASC|II code,|
|000056d0| 20 30 2d 32 35 35 2c 20 | 70 6c 75 73 20 74 68 65 | 0-255, |plus the|
|000056e0| 20 71 75 61 6e 74 69 74 | 79 20 28 32 35 36 20 2a | quantit|y (256 *|
|000056f0| 20 74 68 65 20 76 69 72 | 74 75 61 6c 20 6b 65 79 | the vir|tual key|
|00005700| 20 63 6f 64 65 55 2d 2d | 20 76 61 6c 75 65 20 28 | codeU--| value (|
|00005710| 30 2d 31 32 37 29 20 29 | 2e 20 63 6f 64 65 4e 75 |0-127) )|. codeNu|
|00005720| 6d 20 63 6f 72 72 65 73 | 70 6f 6e 64 73 20 74 6f |m corres|ponds to|
|00005730| 20 74 68 65 20 6d 6f 64 | 69 66 69 65 72 20 6b 65 | the mod|ifier ke|
|00005740| 79 20 73 74 61 74 65 73 | 3b 20 61 64 64 20 74 68 |y states|; add th|
|00005750| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 4e 2d 2d 20 6e |e follow|ingN-- n|
|00005760| 75 6d 62 65 72 73 20 74 | 6f 67 65 74 68 65 72 20 |umbers t|ogether |
|00005770| 66 6f 72 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |for the |followin|
|00005780| 67 20 73 70 65 63 69 61 | 6c 20 6b 65 79 73 3a 20 |g specia|l keys: |
|00005790| 72 69 67 68 74 20 63 6f | 6e 74 72 6f 6c 20 3d 20 |right co|ntrol = |
|000057a0| 31 32 38 3b 20 72 69 67 | 68 74 4f 2d 2d 20 6f 70 |128; rig|htO-- op|
|000057b0| 74 69 6f 6e 20 3d 20 36 | 34 3b 20 72 69 67 68 74 |tion = 6|4; right|
|000057c0| 20 73 68 69 66 74 20 3d | 20 33 32 3b 20 6c 65 66 | shift =| 32; lef|
|000057d0| 74 20 63 6f 6e 74 72 6f | 6c 20 3d 20 31 36 3b 20 |t contro|l = 16; |
|000057e0| 6c 65 66 74 20 6f 70 74 | 69 6f 6e 20 3d 20 38 3b |left opt|ion = 8;|
|000057f0| 20 63 61 70 73 20 6c 6f | 63 6b 50 2d 2d 20 3d 20 | caps lo|ckP-- = |
|00005800| 34 3b 20 6c 65 66 74 20 | 73 68 69 66 74 20 3d 20 |4; left |shift = |
|00005810| 32 3b 20 6c 65 66 74 20 | 63 6f 6d 6d 61 6e 64 20 |2; left |command |
|00005820| 3d 20 31 2e 20 59 6f 75 | 20 63 61 6e 20 72 65 73 |= 1. You| can res|
|00005830| 65 61 72 63 68 20 74 68 | 65 73 65 20 76 61 6c 75 |earch th|ese valu|
|00005840| 65 73 20 62 79 20 75 73 | 69 6e 67 52 2d 2d 20 52 |es by us|ingR-- R|
|00005850| 65 73 45 64 69 74 20 74 | 6f 20 65 78 61 6d 69 6e |esEdit t|o examin|
|00005860| 65 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |e the ap|propriat|
|00005870| 65 20 4b 43 48 52 20 72 | 65 73 6f 75 72 63 65 20 |e KCHR r|esource |
|00005880| 69 6e 20 61 20 63 6f 70 | 79 20 6f 66 20 79 6f 75 |in a cop|y of you|
|00005890| 72 20 53 79 73 74 65 6d | 20 66 69 6c 65 2e 4e 2d |r System| file.N-|
|000058a0| 2d 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 74 |- For ex|ample, t|
|000058b0| 68 65 20 55 53 20 6b 65 | 79 62 6f 61 72 64 20 6c |he US ke|yboard l|
|000058c0| 61 79 6f 75 74 20 75 73 | 65 73 20 74 68 65 73 65 |ayout us|es these|
|000058d0| 20 6e 75 6d 62 65 72 73 | 20 74 6f 20 72 65 70 72 | numbers| to repr|
|000058e0| 65 73 65 6e 74 20 61 20 | 50 61 73 74 65 4e 2d 2d |esent a |PasteN--|
|000058f0| 20 6d 65 6e 75 20 69 74 | 65 6d 20 63 68 6f 69 63 | menu it|em choic|
|00005900| 65 20 28 63 6f 6d 6d 61 | 6e 64 2d 76 29 3a 20 61 |e (comma|nd-v): a|
|00005910| 73 63 69 69 20 31 31 38 | 20 28 68 65 78 20 76 61 |scii 118| (hex va|
|00005920| 6c 75 65 20 37 36 3b 20 | 28 37 20 2a 20 31 36 29 |lue 76; |(7 * 16)|
|00005930| 20 2b 20 36 29 29 2c 20 | 70 6c 75 73 51 2d 2d 20 | + 6)), |plusQ-- |
|00005940| 32 35 36 20 2a 20 39 20 | 28 68 65 78 20 76 61 6c |256 * 9 |(hex val|
|00005950| 75 65 20 30 39 3b 20 30 | 20 2a 20 31 36 20 2b 20 |ue 09; 0| * 16 + |
|00005960| 39 29 2c 20 6f 72 20 32 | 33 30 34 2c 20 66 6f 72 |9), or 2|304, for|
|00005970| 20 74 68 65 20 76 69 72 | 74 75 61 6c 20 6b 65 79 | the vir|tual key|
|00005980| 20 63 6f 64 65 20 70 6f | 72 74 69 6f 6e 2e 4e 2d | code po|rtion.N-|
|00005990| 2d 20 41 53 43 49 49 20 | 2b 20 76 69 72 74 75 61 |- ASCII |+ virtua|
|000059a0| 6c 20 3d 20 32 34 32 32 | 3b 20 74 68 69 73 20 69 |l = 2422|; this i|
|000059b0| 73 20 73 75 70 70 6c 69 | 65 64 20 61 73 20 63 68 |s suppli|ed as ch|
|000059c0| 61 72 4e 75 6d 2e 20 46 | 6f 72 20 74 68 65 20 50 |arNum. F|or the P|
|000059d0| 61 73 74 65 20 63 6f 64 | 65 4e 75 6d 2c 50 2d 2d |aste cod|eNum,P--|
|000059e0| 20 73 75 70 70 6c 79 20 | 31 20 28 63 6f 6d 6d 61 | supply |1 (comma|
|000059f0| 6e 64 20 6b 65 79 20 64 | 6f 77 6e 29 2e 20 53 65 |nd key d|own). Se|
|00005a00| 65 20 74 68 65 20 4d 61 | 73 74 65 72 41 70 70 20 |e the Ma|sterApp |
|00005a10| 72 65 61 64 6d 65 20 66 | 6f 72 20 6d 6f 72 65 20 |readme f|or more |
|00005a20| 69 6e 66 6f 20 6f 6e 20 | 68 6f 77 20 74 6f 33 2d |info on |how to3-|
|00005a30| 2d 20 75 73 65 20 74 68 | 69 73 20 6d 65 74 68 6f |- use th|is metho|
|00005a40| 64 2c 20 61 6e 64 20 6d | 6f 72 65 20 65 78 61 6d |d, and m|ore exam|
|00005a50| 70 6c 65 20 76 61 6c 75 | 65 73 20 74 6f 20 75 73 |ple valu|es to us|
|00005a60| 65 2e 32 49 49 49 49 20 | 6d 46 61 6b 65 43 68 61 |e.2IIII |mFakeCha|
|00005a70| 72 43 6f 64 65 57 61 69 | 74 2c 20 77 69 6e 64 6f |rCodeWai|t, windo|
|00005a80| 77 49 44 2c 20 63 68 61 | 72 4e 75 6d 2c 20 63 6f |wID, cha|rNum, co|
|00005a90| 64 65 4e 75 6d 47 2d 2d | 20 4f 6e 20 74 68 65 20 |deNumG--| On the |
|00005aa0| 4d 61 63 2c 20 61 20 73 | 79 6e 6f 6e 79 6d 20 66 |Mac, a s|ynonym f|
|00005ab0| 6f 20 6d 46 61 6b 65 43 | 68 61 72 43 6f 64 65 2e |o mFakeC|harCode.|
|00005ac0| 20 54 68 65 20 64 69 66 | 66 65 72 65 6e 74 20 74 | The dif|ferent t|
|00005ad0| 65 63 68 69 71 75 65 73 | 20 74 68 61 74 47 2d 2d |echiques| thatG--|
|00005ae0| 20 75 6e 64 65 72 6c 69 | 65 20 74 68 65 20 74 77 | underli|e the tw|
|00005af0| 6f 20 73 65 70 61 72 61 | 74 65 20 6d 65 74 68 6f |o separa|te metho|
|00005b00| 64 73 20 6f 6e 20 57 69 | 6e 64 6f 77 73 20 64 6f |ds on Wi|ndows do|
|00005b10| 6e 27 74 20 65 78 69 73 | 74 20 6f 6e 20 74 68 65 |n't exis|t on the|
|00005b20| 20 4d 61 63 2e 1d 53 53 | 20 6d 4c 6f 63 61 74 65 | Mac..SS| mLocate|
|00005b30| 45 78 65 63 75 74 61 62 | 6c 65 2c 20 74 68 65 46 |Executab|le, theF|
|00005b40| 69 6c 65 48 2d 2d 20 52 | 65 74 75 72 6e 73 20 74 |ileH-- R|eturns t|
|00005b50| 68 65 20 66 75 6c 6c 20 | 66 69 6c 65 6e 61 6d 65 |he full |filename|
|00005b60| 20 6f 66 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 | of the |applicat|
|00005b70| 69 6f 6e 20 72 65 67 69 | 73 74 65 72 65 64 20 74 |ion regi|stered t|
|00005b80| 6f 20 6c 61 75 6e 63 68 | 20 74 68 65 46 2d 2d 20 |o launch| theF-- |
|00005b90| 70 72 6f 76 69 64 65 64 | 20 66 69 6c 65 20 28 75 |provided| file (u|
|00005ba0| 73 65 20 61 20 66 75 6c | 6c 20 70 61 74 68 20 74 |se a ful|l path t|
|00005bb0| 6f 20 74 68 65 20 66 69 | 6c 65 6e 61 6d 65 29 2e |o the fi|lename).|
|00005bc0| 20 41 6c 74 65 72 6e 61 | 74 69 76 65 20 75 73 61 | Alterna|tive usa|
|00005bd0| 67 65 3a 45 2d 2d 20 70 | 72 6f 76 69 64 65 20 61 |ge:E-- p|rovide a|
|00005be0| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 6e 61 |n applic|ation na|
|00005bf0| 6d 65 20 77 69 74 68 6f | 75 74 20 61 20 70 61 74 |me witho|ut a pat|
|00005c00| 68 2c 20 69 6e 73 74 65 | 61 64 20 6f 66 20 61 20 |h, inste|ad of a |
|00005c10| 64 6f 63 75 6d 65 6e 74 | 3b 43 2d 2d 20 74 68 65 |document|;C-- the|
|00005c20| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 27 73 20 66 | applica|tion's f|
|00005c30| 6f 6c 64 65 72 20 77 69 | 6c 6c 20 62 65 20 72 65 |older wi|ll be re|
|00005c40| 74 75 72 6e 65 64 2e 20 | 52 65 74 75 72 6e 73 20 |turned. |Returns |
|00005c50| 61 20 73 74 72 69 6e 67 | 20 77 69 74 68 47 2d 2d |a string| withG--|
|00005c60| 20 77 6f 72 64 20 31 20 | 27 45 72 72 6f 72 3a 27 | word 1 |'Error:'|
|00005c70| 20 69 66 20 6e 6f 74 68 | 69 6e 67 20 63 61 6e 20 | if noth|ing can |
|00005c80| 62 65 20 6c 6f 63 61 74 | 65 64 2e 20 4e 6f 74 65 |be locat|ed. Note|
|00005c90| 20 74 68 61 74 20 74 68 | 65 20 61 6c 74 65 72 6e | that th|e altern|
|00005ca0| 61 74 69 76 65 4c 2d 2d | 20 75 73 61 67 65 20 63 |ativeL--| usage c|
|00005cb0| 61 6e 20 74 61 6b 65 20 | 71 75 69 74 65 20 61 20 |an take |quite a |
|00005cc0| 77 68 69 6c 65 2c 20 61 | 73 20 69 74 20 73 65 61 |while, a|s it sea|
|00005cd0| 72 63 68 65 73 20 61 6c | 6c 20 6c 6f 63 61 6c 20 |rches al|l local |
|00005ce0| 61 6e 64 20 6e 65 74 77 | 6f 72 6b 20 64 69 73 6b |and netw|ork disk|
|00005cf0| 73 2e 19 49 53 20 6d 4f | 70 65 6e 44 6f 63 75 6d |s..IS mO|penDocum|
|00005d00| 65 6e 74 2c 20 74 68 65 | 46 69 6c 65 4a 2d 2d 20 |ent, the|FileJ-- |
|00005d10| 4f 70 65 6e 73 20 61 20 | 64 6f 63 75 6d 65 6e 74 |Opens a |document|
|00005d20| 20 77 69 74 68 20 69 74 | 73 20 72 65 67 69 73 74 | with it|s regist|
|00005d30| 65 72 65 64 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ered app|lication|
|00005d40| 20 28 6c 61 75 6e 63 68 | 69 6e 67 20 74 68 65 20 | (launch|ing the |
|00005d50| 61 70 70 2c 20 69 66 47 | 2d 2d 20 6e 65 63 65 73 |app, ifG|-- neces|
|00005d60| 73 61 72 79 29 2e 20 52 | 65 74 75 72 6e 73 20 61 |sary). R|eturns a|
|00005d70| 6e 20 69 6e 73 74 61 6e | 63 65 49 44 20 6f 66 20 |n instan|ceID of |
|00005d80| 74 68 65 20 6c 61 75 6e | 63 68 65 64 20 61 70 70 |the laun|ched app|
|00005d90| 6c 69 63 61 74 69 6f 6e | 2c 20 6f 72 20 2d 31 45 |lication|, or -1E|
|00005da0| 2d 2d 20 69 66 20 74 68 | 65 20 66 69 6c 65 20 69 |-- if th|e file i|
|00005db0| 73 20 6d 69 73 73 69 6e | 67 2c 20 6f 72 20 61 6e |s missin|g, or an|
|00005dc0| 6f 74 68 65 72 20 6e 65 | 67 61 74 69 76 65 20 6e |other ne|gative n|
|00005dd0| 75 6d 62 65 72 20 69 66 | 20 74 68 65 72 65 27 73 |umber if| there's|
|00005de0| 20 73 6f 6d 65 26 2d 2d | 20 6f 74 68 65 72 20 70 | some&--| other p|
|00005df0| 72 6f 62 6c 65 6d 20 6f | 70 65 6e 69 6e 67 20 74 |roblem o|pening t|
|00005e00| 68 65 20 64 6f 63 75 6d | 65 6e 74 2e 1a 49 53 20 |he docum|ent..IS |
|00005e10| 6d 50 72 69 6e 74 44 6f | 63 75 6d 65 6e 74 2c 20 |mPrintDo|cument, |
|00005e20| 74 68 65 46 69 6c 65 4b | 2d 2d 20 50 72 69 6e 74 |theFileK|-- Print|
|00005e30| 73 20 61 20 64 6f 63 75 | 6d 65 6e 74 20 77 69 74 |s a docu|ment wit|
|00005e40| 68 20 69 74 73 20 72 65 | 67 69 73 74 65 72 65 64 |h its re|gistered|
|00005e50| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 28 6c 61 | applica|tion (la|
|00005e60| 75 6e 63 68 69 6e 67 20 | 74 68 65 20 61 70 70 2c |unching |the app,|
|00005e70| 20 69 66 47 2d 2d 20 6e | 65 63 65 73 73 61 72 79 | ifG-- n|ecessary|
|00005e80| 29 2e 20 52 65 74 75 72 | 6e 73 20 61 6e 20 69 6e |). Retur|ns an in|
|00005e90| 73 74 61 6e 63 65 49 44 | 20 6f 66 20 74 68 65 20 |stanceID| of the |
|00005ea0| 6c 61 75 6e 63 68 65 64 | 20 61 70 70 6c 69 63 61 |launched| applica|
|00005eb0| 74 69 6f 6e 2c 20 6f 72 | 20 2d 31 45 2d 2d 20 69 |tion, or| -1E-- i|
|00005ec0| 66 20 74 68 65 20 66 69 | 6c 65 20 69 73 20 6d 69 |f the fi|le is mi|
|00005ed0| 73 73 69 6e 67 2c 20 6f | 72 20 61 6e 6f 74 68 65 |ssing, o|r anothe|
|00005ee0| 72 20 6e 65 67 61 74 69 | 76 65 20 6e 75 6d 62 65 |r negati|ve numbe|
|00005ef0| 72 20 69 66 20 74 68 65 | 72 65 27 73 20 73 6f 6d |r if the|re's som|
|00005f00| 65 26 2d 2d 20 6f 74 68 | 65 72 20 70 72 6f 62 6c |e&-- oth|er probl|
|00005f10| 65 6d 20 6f 70 65 6e 69 | 6e 67 20 74 68 65 20 64 |em openi|ng the d|
|00005f20| 6f 63 75 6d 65 6e 74 2e | 13 49 20 6d 47 65 74 4d |ocument.|.I mGetM|
|00005f30| 65 6e 75 42 61 72 48 65 | 69 67 68 74 1f 49 49 20 |enuBarHe|ight.II |
|00005f40| 6d 53 65 74 4d 65 6e 75 | 42 61 72 48 65 69 67 68 |mSetMenu|BarHeigh|
|00005f50| 74 2c 20 6e 65 77 48 65 | 69 67 68 74 12 49 20 6d |t, newHe|ight.I m|
|00005f60| 47 65 74 53 79 73 74 65 | 6d 53 63 72 69 70 74 12 |GetSyste|mScript.|
|00005f70| 49 20 6d 47 65 74 53 79 | 73 74 65 6d 52 65 67 69 |I mGetSy|stemRegi|
|00005f80| 6f 6e 46 2d 2d 20 54 68 | 65 73 65 20 6d 65 74 68 |onF-- Th|ese meth|
|00005f90| 6f 64 73 20 61 72 65 20 | 75 73 65 66 75 6c 20 74 |ods are |useful t|
|00005fa0| 6f 20 61 73 73 75 72 65 | 20 74 68 61 74 20 61 6e |o assure| that an|
|00005fb0| 79 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 79 |y applic|ations y|
|00005fc0| 6f 75 20 6c 61 75 6e 63 | 68 4a 2d 2d 20 6f 72 20 |ou launc|hJ-- or |
|00005fd0| 73 77 69 74 63 68 20 74 | 6f 20 70 72 6f 70 65 72 |switch t|o proper|
|00005fe0| 6c 79 20 64 69 73 70 6c | 61 79 20 74 68 65 69 72 |ly displ|ay their|
|00005ff0| 20 6d 65 6e 75 73 2e 20 | 4d 61 63 20 70 72 6f 6a | menus. |Mac proj|
|00006000| 65 63 74 6f 72 73 20 64 | 6f 6e 27 74 20 63 6f 6e |ectors d|on't con|
|00006010| 74 61 69 6e 51 2d 2d 20 | 6d 65 6e 75 73 20 75 73 |tainQ-- |menus us|
|00006020| 75 61 6c 6c 79 3b 20 74 | 68 65 73 65 20 4d 61 63 |ually; t|hese Mac|
|00006030| 2d 6f 6e 6c 79 20 6d 65 | 74 68 6f 64 73 20 6c 65 |-only me|thods le|
|00006040| 74 20 79 6f 75 20 73 6f | 6c 76 65 20 61 6e 79 20 |t you so|lve any |
|00006050| 6d 65 6e 75 20 64 69 73 | 70 6c 61 79 20 70 72 6f |menu dis|play pro|
|00006060| 62 6c 65 6d 73 2e 48 2d | 2d 20 54 68 65 20 55 53 |blems.H-|- The US|
|00006070| 20 73 79 73 74 65 6d 20 | 73 63 72 69 70 74 20 28 | system |script (|
|00006080| 30 29 20 75 73 65 73 20 | 61 20 73 74 61 6e 64 61 |0) uses |a standa|
|00006090| 72 64 20 6d 65 6e 75 20 | 62 61 72 20 68 65 69 67 |rd menu |bar heig|
|000060a0| 68 74 20 6f 66 20 32 30 | 2e 20 4f 74 68 65 72 49 |ht of 20|. OtherI|
|000060b0| 2d 2d 20 6c 6f 63 61 6c | 69 7a 65 64 20 73 79 73 |-- local|ized sys|
|000060c0| 74 65 6d 20 76 65 72 73 | 69 6f 6e 73 20 6d 61 79 |tem vers|ions may|
|000060d0| 20 75 73 65 20 64 69 66 | 66 65 72 65 6e 74 20 68 | use dif|ferent h|
|000060e0| 65 69 67 68 74 73 2e 20 | 54 68 65 20 70 72 6f 70 |eights. |The prop|
|000060f0| 65 72 20 68 65 69 67 68 | 74 4c 2d 2d 20 74 6f 20 |er heigh|tL-- to |
|00006100| 75 73 65 20 63 61 6e 20 | 62 65 20 64 65 74 65 72 |use can |be deter|
|00006110| 6d 69 6e 65 64 20 69 6e | 20 74 68 65 20 61 75 74 |mined in| the aut|
|00006120| 68 6f 72 69 6e 67 20 4d | 65 73 73 61 67 65 20 77 |horing M|essage w|
|00006130| 69 6e 64 6f 77 20 6f 6e | 20 73 75 63 68 20 73 79 |indow on| such sy|
|00006140| 73 74 65 6d 73 2e 4b 2d | 2d 20 53 65 65 20 74 68 |stems.K-|- See th|
|00006150| 65 20 73 75 70 70 6c 69 | 65 64 20 52 65 61 64 20 |e suppli|ed Read |
|00006160| 4d 65 20 69 6e 66 6f 20 | 66 6f 72 20 74 68 65 20 |Me info |for the |
|00006170| 6d 65 61 6e 69 6e 67 20 | 6f 66 20 73 63 72 69 70 |meaning |of scrip|
|00006180| 74 20 26 20 72 65 67 69 | 6f 6e 20 76 61 6c 75 65 |t & regi|on value|
|00006190| 73 2e 48 2d 2d 20 4f 72 | 2c 20 75 73 65 20 4c 69 |s.H-- Or|, use Li|
|000061a0| 6e 67 6f 27 73 20 27 69 | 6e 73 74 61 6c 6c 4d 65 |ngo's 'i|nstallMe|
|000061b0| 6e 75 27 20 74 6f 20 69 | 6e 73 74 61 6c 6c 20 61 |nu' to i|nstall a|
|000061c0| 20 62 6c 61 6e 6b 20 6d | 65 6e 75 20 69 6e 20 61 | blank m|enu in a|
|000061d0| 20 70 72 6f 6a 65 63 74 | 6f 72 2c 4d 2d 2d 20 6f | project|or,M-- o|
|000061e0| 6e 63 65 2c 20 74 65 6d | 70 6f 72 61 72 69 6c 79 |nce, tem|porarily|
|000061f0| 2c 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 20 74 |, to det|ermine t|
|00006200| 68 65 20 6d 65 6e 75 20 | 62 61 72 20 68 65 69 67 |he menu |bar heig|
|00006210| 68 74 20 69 6e 20 74 68 | 65 20 63 75 72 72 65 6e |ht in th|e curren|
|00006220| 74 20 73 79 73 74 65 6d | 2e 34 49 53 53 20 6d 4c |t system|.4ISS mL|
|00006230| 61 75 6e 63 68 2c 20 74 | 68 65 50 72 6f 67 72 61 |aunch, t|heProgra|
|00006240| 6d 46 69 6c 65 2c 20 74 | 68 65 43 6f 6d 6d 61 6e |mFile, t|heComman|
|00006250| 64 4c 69 6e 65 41 72 67 | 75 6d 65 6e 74 73 4d 2d |dLineArg|umentsM-|
|00006260| 2d 20 4f 70 65 6e 73 20 | 61 70 70 6c 69 63 61 74 |- Opens |applicat|
|00006270| 69 6f 6e 20 69 6e 64 69 | 63 61 74 65 64 20 62 79 |ion indi|cated by|
|00006280| 20 74 68 65 20 66 75 6c | 6c 20 70 61 74 68 6e 61 | the ful|l pathna|
|00006290| 6d 65 20 27 74 68 65 50 | 72 6f 67 72 61 6d 46 69 |me 'theP|rogramFi|
|000062a0| 6c 65 27 2c 20 69 66 20 | 69 74 27 73 4b 2d 2d 20 |le', if |it'sK-- |
|000062b0| 6e 6f 74 20 61 6c 72 65 | 61 64 79 20 6f 70 65 6e |not alre|ady open|
|000062c0| 2c 20 6f 72 20 73 77 69 | 74 63 68 65 73 20 74 68 |, or swi|tches th|
|000062d0| 61 74 20 61 70 70 20 74 | 6f 20 74 68 65 20 66 72 |at app t|o the fr|
|000062e0| 6f 6e 74 20 69 66 20 69 | 74 20 69 73 20 6f 70 65 |ont if i|t is ope|
|000062f0| 6e 3b 20 61 6c 73 6f 2c | 52 2d 2d 20 69 66 20 61 |n; also,|R-- if a|
|00006300| 6e 79 74 68 69 6e 67 20 | 6f 74 68 65 72 20 74 68 |nything |other th|
|00006310| 61 6e 20 45 4d 50 54 59 | 20 69 73 20 70 72 6f 76 |an EMPTY| is prov|
|00006320| 69 64 65 64 20 66 6f 72 | 20 27 74 68 65 43 6f 6d |ided for| 'theCom|
|00006330| 6d 61 6e 64 4c 69 6e 65 | 41 72 67 75 6d 65 6e 74 |mandLine|Argument|
|00006340| 73 27 2c 20 61 73 73 75 | 6d 65 73 55 2d 2d 20 69 |s', assu|mesU-- i|
|00006350| 74 20 69 73 20 61 20 66 | 75 6c 6c 20 70 61 74 68 |t is a f|ull path|
|00006360| 6e 61 6d 65 20 74 6f 20 | 61 20 64 6f 63 75 6d 65 |name to |a docume|
|00006370| 6e 74 20 79 6f 75 20 77 | 61 6e 74 20 6f 70 65 6e |nt you w|ant open|
|00006380| 65 64 20 69 6e 20 74 68 | 65 20 61 70 70 2e 20 52 |ed in th|e app. R|
|00006390| 65 74 75 72 6e 73 20 61 | 20 6e 65 67 61 74 69 76 |eturns a| negativ|
|000063a0| 65 55 2d 2d 20 6e 75 6d | 62 65 72 20 66 6f 72 20 |eU-- num|ber for |
|000063b0| 65 72 72 6f 72 73 20 28 | 2d 31 30 38 20 69 73 20 |errors (|-108 is |
|000063c0| 61 20 63 6f 6d 6d 6f 6e | 20 6f 6e 65 2c 20 66 6f |a common| one, fo|
|000063d0| 72 20 6e 6f 74 20 65 6e | 6f 75 67 68 20 6d 65 6d |r not en|ough mem|
|000063e0| 6f 72 79 29 2c 20 6f 72 | 20 61 6e 20 69 6e 73 74 |ory), or| an inst|
|000063f0| 61 6e 63 65 49 44 2e 3d | 49 53 53 20 6d 4c 61 75 |anceID.=|ISS mLau|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.